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:
ari
2025-02-08 18:23:44 +01:00
committed by GitHub
parent e53c064bf7
commit b3a2bb00a1
15 changed files with 22 additions and 18 deletions

View File

@@ -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);
}
};
};

View File

@@ -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);
}
};
};