Make progress on ticket creations + fixes

This commit is contained in:
Isaac
2022-08-08 01:36:14 +01:00
parent fcd390bc9d
commit 01e479dab5
11 changed files with 220 additions and 75 deletions

View File

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