DiscordTickets/src/modals/topic.js
2022-08-08 21:55:09 +01:00

17 lines
299 B
JavaScript

const { Modal } = require('@eartharoid/dbf');
module.exports = class TopicModal extends Modal {
constructor(client, options) {
super(client, {
...options,
id: 'topic',
});
}
async run(id, interaction) {
await this.client.tickets.postQuestions({
...id,
interaction,
});
}
};