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