mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 18:21:25 +03:00
feat: finish user create
command (closes #291)
This commit is contained in:
@@ -13,10 +13,11 @@ module.exports = class CreateButton extends Button {
|
||||
* @param {import("discord.js").ButtonInteraction} interaction
|
||||
*/
|
||||
async run(id, interaction) {
|
||||
if (id.targetUser && id.targetUser !== interaction.user.id) return;
|
||||
await this.client.tickets.create({
|
||||
categoryId: id.target,
|
||||
interaction,
|
||||
topic: id.topic,
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user