aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/config.ts2
-rw-r--r--src/commands/config/features.ts7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/commands/config/config.ts b/src/commands/config/config.ts
index 00c6a69..2ce4246 100644
--- a/src/commands/config/config.ts
+++ b/src/commands/config/config.ts
@@ -229,7 +229,7 @@ export default class SettingsCommand extends BushCommand {
}
const collector = msg.createMessageComponentCollector({
time: 300_000,
- filter: (i) => i.guildId === msg.guildId && i.message.id === msg.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 d2c2baf..095d985 100644
--- a/src/commands/config/features.ts
+++ b/src/commands/config/features.ts
@@ -1,6 +1,7 @@
import {
BushCommand,
- guildFeaturesArr, guildFeaturesObj,
+ guildFeaturesArr,
+ guildFeaturesObj,
type BushMessage,
type BushSlashMessage,
type GuildFeatures
@@ -36,7 +37,7 @@ export default class FeaturesCommand extends BushCommand {
const collector = msg.createMessageComponentCollector({
componentType: 'SELECT_MENU',
time: 300_000,
- filter: (i) => i.guildId === msg.guildId && i.message.id === msg.id
+ filter: (i) => i.guildId === msg.guildId && i.message?.id === msg.id
});
collector.on('collect', async (interaction: SelectMenuInteraction) => {
@@ -78,7 +79,7 @@ export default class FeaturesCommand extends BushCommand {
return new MessageActionRow().addComponents(
new MessageSelectMenu({
customId: 'command_selectFeature',
- disabled: disable,
+ disabled: disable,
maxValues: 1,
minValues: 1,
options: guildFeatures.map((f) => ({