mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
+2
-2
@@ -348,7 +348,7 @@ module.exports = class Util {
|
||||
const filter = interaction => {
|
||||
if (interaction.user.bot) return false;
|
||||
if (blacklist.includes(interaction.user.id)) return false;
|
||||
if (interaction.user.id !== msg.author.id && interaction.customID === 'start') return false;
|
||||
if (interaction.user.id !== msg.author.id && interaction.customId === 'start') return false;
|
||||
if (joined.includes(interaction.user.id)) return false;
|
||||
return true;
|
||||
};
|
||||
@@ -358,7 +358,7 @@ module.exports = class Util {
|
||||
time: 120000
|
||||
});
|
||||
collector.on('collect', interaction => {
|
||||
if (interaction.customID === 'start') {
|
||||
if (interaction.customId === 'start') {
|
||||
interaction.deferUpdate();
|
||||
collector.stop();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user