start making things

This commit is contained in:
Isaac
2022-08-05 22:21:55 +01:00
parent cdb8fa04c4
commit 052c159157
25 changed files with 669 additions and 46 deletions

View File

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