mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 10:11:27 +03:00
feat: ephemeral replies on (un)claim buttons (#580)
* new lines * ephemeral button interactions * send message to channel if interaction is ephemeral * move deferreply to use ephemeral on no perms * .editReply() -> .reply()
This commit is contained in:
@@ -16,7 +16,6 @@ module.exports = class ClaimButton extends Button {
|
||||
/** @type {import("client")} */
|
||||
const client = this.client;
|
||||
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.claim(interaction);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@@ -16,7 +16,6 @@ module.exports = class UnclaimButton extends Button {
|
||||
/** @type {import("client")} */
|
||||
const client = this.client;
|
||||
|
||||
await interaction.deferReply({ ephemeral: false });
|
||||
await client.tickets.release(interaction);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user