mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
debug: catch & trace interaction reply errors
This commit is contained in:
parent
016330366e
commit
6df67da3cb
4 changed files with 27 additions and 15 deletions
|
@ -205,7 +205,9 @@ export const MutesCmd = mutesCmd({
|
|||
|
||||
collector.on("collect", async (interaction: MessageComponentInteraction) => {
|
||||
if (msg.author.id !== interaction.user.id) {
|
||||
interaction.reply({ content: `You are not permitted to use these buttons.`, ephemeral: true });
|
||||
interaction
|
||||
.reply({ content: `You are not permitted to use these buttons.`, ephemeral: true })
|
||||
.catch((err) => console.trace(err.message));
|
||||
} else {
|
||||
collector.resetTimer();
|
||||
await interaction.deferUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue