aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-16 18:22:11 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-09-16 18:22:11 -0400
commit4014e80e349526f5257f1c4f5aaed732593f3f80 (patch)
treee3bdaa55954ba981ffc764007de4c278d7030749 /src/commands/config
parent7889489b0a959e6097db2fd17065e4a36f8be6b3 (diff)
downloadtanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.tar.gz
tanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.tar.bz2
tanzanite-4014e80e349526f5257f1c4f5aaed732593f3f80.zip
fix breaking changes
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/config.ts6
-rw-r--r--src/commands/config/features.ts6
2 files changed, 4 insertions, 8 deletions
diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts
index 6e7373c..3f1fc8c 100644
--- a/src/commands/config/config.ts
+++ b/src/commands/config/config.ts
@@ -240,10 +240,8 @@ export default class SettingsCommand extends BushCommand {
}
}
const collector = msg.createMessageComponentCollector({
- channel: message.channel ?? undefined,
- guild: message.guild,
- message: message as Message,
- time: 300_000
+ time: 300_000,
+ filter: (i) => i.guildId === message.guildId && i.message.id === message.id
});
collector.on('collect', async (interaction: MessageComponentInteraction) => {
diff --git a/src/commands/config/features.ts b/src/commands/config/features.ts
index 8010ab9..743b243 100644
--- a/src/commands/config/features.ts
+++ b/src/commands/config/features.ts
@@ -28,11 +28,9 @@ export default class FeaturesCommand extends BushCommand {
const components = this.generateComponents(guildFeaturesArr, false);
const msg = (await message.util.reply({ embeds: [featureEmbed], components: [components] })) as Message;
const collector = msg.createMessageComponentCollector({
- channel: message.channel ?? undefined,
- guild: message.guild,
componentType: 'SELECT_MENU',
- message: message as Message,
- time: 300_000
+ time: 300_000,
+ filter: (i) => i.guildId === message.guildId && i.message.id === message.id
});
collector.on('collect', async (interaction: SelectMenuInteraction) => {