aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/config.ts')
-rw-r--r--src/commands/config/config.ts2
1 files changed, 1 insertions, 1 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) => {