mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 10:11:27 +03:00
Add message and ticket referencing, fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const { MessageCommand } = require('@eartharoid/dbf');
|
||||
const { useGuild } = require('../../lib/tickets/utils');
|
||||
|
||||
module.exports = class CreateMessageCommand extends MessageCommand {
|
||||
constructor(client, options) {
|
||||
@@ -13,7 +14,11 @@ module.exports = class CreateMessageCommand extends MessageCommand {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {import("discord.js").MessageContextMenuCommandInteraction} interaction
|
||||
*/
|
||||
async run(interaction) {
|
||||
// TODO: archive message
|
||||
await useGuild(this.client, interaction, { referencesMessage: interaction.targetMessage.channelId + '/' + interaction.targetId });
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user