From 3b1311951638bc54efbbb245632e2b3ab460f741 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sun, 3 Oct 2021 18:16:11 -0400 Subject: new links, bug fixes, excape rtl charecters in welcome messages --- src/commands/config/config.ts | 4 ++-- src/commands/config/features.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commands/config') diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts index 4cab741..2075531 100644 --- a/src/commands/config/config.ts +++ b/src/commands/config/config.ts @@ -198,7 +198,7 @@ export default class SettingsCommand extends BushCommand { const action = message.util.isSlash ? args.subcommand! : args.action!; const value = args.value; - let msg; + let msg: Message; if (!setting || action === 'view') { const messageOptions = await this.generateMessageOptions(message, setting ?? undefined); @@ -241,7 +241,7 @@ export default class SettingsCommand extends BushCommand { } const collector = msg.createMessageComponentCollector({ time: 300_000, - filter: (i) => i.guildId === message.guildId && i.message.id === message.id + filter: (i) => i.guildId === msg.guildId && i.message.id === msg.id }); collector.on('collect', async (interaction: MessageComponentInteraction) => { diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts index 743b243..076d469 100644 --- a/src/commands/config/features.ts +++ b/src/commands/config/features.ts @@ -30,7 +30,7 @@ export default class FeaturesCommand extends BushCommand { const collector = msg.createMessageComponentCollector({ componentType: 'SELECT_MENU', time: 300_000, - filter: (i) => i.guildId === message.guildId && i.message.id === message.id + filter: (i) => i.guildId === msg.guildId && i.message.id === msg.id }); collector.on('collect', async (interaction: SelectMenuInteraction) => { -- cgit