mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +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
|
@ -27,7 +27,9 @@ export async function waitForButtonConfirm(
|
|||
|
||||
collector.on("collect", (interaction: MessageComponentInteraction) => {
|
||||
if (options?.restrictToId && options.restrictToId !== 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 {
|
||||
if (interaction.customId.startsWith(`confirmButton:${idMod}:`)) {
|
||||
message.delete();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue