mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 11: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);
|
await interaction.editReply(responseMessage);
|
||||||
}
|
}
|
||||||
} else if (interaction.isSelectMenu()) {
|
} else if (interaction.isSelectMenu()) {
|
||||||
|
if (interaction.customId === 'listen-modify-select') {
|
||||||
await interaction.deferUpdate();
|
await interaction.deferUpdate();
|
||||||
const { guild } = interaction;
|
const { guild } = interaction;
|
||||||
if (!isModerator(interaction.member)) {
|
if (!isModerator(interaction.member)) {
|
||||||
@@ -601,6 +602,7 @@ client.on('interactionCreate', async (interaction) => {
|
|||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user