diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-18 12:52:27 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-18 12:52:27 -0400 |
commit | 3e9dad9bd054aa0733133a09e6cae0c129b4693f (patch) | |
tree | 82f4929d0b7a7a3116274493eff584c837aac690 /src | |
parent | bbabd500755002f7a25c60f8294602777b077946 (diff) | |
download | tanzanite-3e9dad9bd054aa0733133a09e6cae0c129b4693f.tar.gz tanzanite-3e9dad9bd054aa0733133a09e6cae0c129b4693f.tar.bz2 tanzanite-3e9dad9bd054aa0733133a09e6cae0c129b4693f.zip |
fix token & eval in dms
Diffstat (limited to 'src')
-rw-r--r-- | src/commands/dev/eval.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 76a78ba..83dd66f 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -178,8 +178,8 @@ export default class EvalCommand extends BushCommand { guild = message.guild, channel = message.channel, config = this.client.config, - members = message.guild.members, - roles = message.guild.roles, + members = message.guild?.members, + roles = message.guild?.roles, client = this.client, { Ban, Global, Guild, Level, ModLog, StickyRole } = await import('@lib'), { diff --git a/src/lib/extensions/discord-akairo/BushClient.ts b/src/lib/extensions/discord-akairo/BushClient.ts index b8e9d00..17d3e11 100644 --- a/src/lib/extensions/discord-akairo/BushClient.ts +++ b/src/lib/extensions/discord-akairo/BushClient.ts @@ -137,7 +137,7 @@ export class BushClient extends AkairoClient { ); // Set token - this.token = config.credentials.token; + this.token = config.token; // Set config this.config = config; |