mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 09:21:25 +03:00
start making things
This commit is contained in:
@@ -8,5 +8,15 @@ module.exports = class CreateButton extends Button {
|
||||
});
|
||||
}
|
||||
|
||||
async run(id, interaction) { }
|
||||
/**
|
||||
* @param {*} id
|
||||
* @param {import("discord.js").ButtonInteraction} interaction
|
||||
*/
|
||||
async run(id, interaction) {
|
||||
await this.client.tickets.create({
|
||||
categoryId: id.target,
|
||||
interaction,
|
||||
topic: id.topic,
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user