mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 10:11:27 +03:00
start making things
This commit is contained in:
@@ -8,5 +8,15 @@ module.exports = class CreateMenu extends Menu {
|
||||
});
|
||||
}
|
||||
|
||||
async run(id, interaction) { }
|
||||
/**
|
||||
* @param {*} id
|
||||
* @param {import("discord.js").SelectMenuInteraction} interaction
|
||||
*/
|
||||
async run(id, interaction) {
|
||||
await this.client.tickets.create({
|
||||
categoryId: interaction.values[0],
|
||||
interaction,
|
||||
topic: id.topic,
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user