mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 03:01:04 -05:00
Check the interaction customId
This commit is contained in:
@@ -568,6 +568,7 @@ client.on('interactionCreate', async (interaction) => {
|
||||
await interaction.editReply(responseMessage);
|
||||
}
|
||||
} else if (interaction.isSelectMenu()) {
|
||||
if (interaction.customId === 'listen-modify-select') {
|
||||
await interaction.deferUpdate();
|
||||
const { guild } = interaction;
|
||||
if (!isModerator(interaction.member)) {
|
||||
@@ -601,6 +602,7 @@ client.on('interactionCreate', async (interaction) => {
|
||||
ephemeral: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user