aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-03 18:16:11 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-03 18:16:11 -0400
commit3b1311951638bc54efbbb245632e2b3ab460f741 (patch)
tree07fc42ba19a0ec4a2b3168faf96d284f726fb3da /src/commands/config
parent4b4d05d9708bdaef2c93df1a83c4ce7ca4350f7a (diff)
downloadtanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.tar.gz
tanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.tar.bz2
tanzanite-3b1311951638bc54efbbb245632e2b3ab460f741.zip
new links, bug fixes, excape rtl charecters in welcome messages
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/config.ts4
-rw-r--r--src/commands/config/features.ts2
2 files changed, 3 insertions, 3 deletions
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) => {