diff options
-rw-r--r-- | .vscode/extensions.json | 4 | ||||
-rw-r--r-- | src/commands/dev/eval.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClient.ts | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/.vscode/extensions.json b/.vscode/extensions.json index d56ae08..5b6b367 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -7,6 +7,8 @@ "esbenp.prettier-vscode", "streetsidesoftware.code-spell-checker", "github.vscode-pull-request-github", - "ckolkman.vscode-postgres" + "ckolkman.vscode-postgres", + "tobias-faller.vt100-syntax-highlighting", + "pkief.material-icon-theme" ] }
\ No newline at end of file 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; |