DiscordTickets/src/modals/questions.js

22 lines
408 B
JavaScript
Raw Normal View History

const { Modal } = require('@eartharoid/dbf');
module.exports = class QuestionsModal extends Modal {
constructor(client, options) {
super(client, {
...options,
id: 'questions',
});
}
/**
*
* @param {*} id
* @param {import("discord.js").ModalSubmitInteraction} interaction
*/
2022-08-06 00:21:55 +03:00
async run(id, interaction) {
await this.client.tickets.postQuestions({
...id,
interaction,
});
2022-08-06 00:21:55 +03:00
}
};