feat: finish user create command (closes #291)

This commit is contained in:
Isaac
2023-05-30 00:25:25 +01:00
parent 540ee547ea
commit 8f51ff885c
3 changed files with 163 additions and 7 deletions

View File

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