mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-07 18:41:26 +03:00
Make progress on ticket creations + fixes
This commit is contained in:
@@ -8,13 +8,15 @@ module.exports = class QuestionsModal extends Modal {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {*} id
|
||||
* @param {import("discord.js").ModalSubmitInteraction} interaction
|
||||
*/
|
||||
async run(id, interaction) {
|
||||
console.log(id);
|
||||
console.log(require('util').inspect(interaction, {
|
||||
colors: true,
|
||||
depth: 10,
|
||||
}));
|
||||
|
||||
// TODO: custom topic
|
||||
await this.client.tickets.postQuestions({
|
||||
...id,
|
||||
interaction,
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user