mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 17:23:08 +02:00
Fix Discord's UI problem
This commit is contained in:
parent
f419cbf967
commit
80399cd294
@ -13,6 +13,7 @@ module.exports = class CreateMenu extends Menu {
|
|||||||
* @param {import("discord.js").SelectMenuInteraction} interaction
|
* @param {import("discord.js").SelectMenuInteraction} interaction
|
||||||
*/
|
*/
|
||||||
async run(id, interaction) {
|
async run(id, interaction) {
|
||||||
|
interaction.message.edit({ components: interaction.message.components }); // reset the select menu (minor client-side UI issue)
|
||||||
await this.client.tickets.create({
|
await this.client.tickets.create({
|
||||||
categoryId: interaction.values[0],
|
categoryId: interaction.values[0],
|
||||||
interaction,
|
interaction,
|
||||||
|
Loading…
Reference in New Issue
Block a user