aboutsummaryrefslogtreecommitdiff
path: root/src/context-menu-commands/message/viewRaw.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/context-menu-commands/message/viewRaw.ts')
-rw-r--r--src/context-menu-commands/message/viewRaw.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context-menu-commands/message/viewRaw.ts b/src/context-menu-commands/message/viewRaw.ts
index 1ece8cd..c283635 100644
--- a/src/context-menu-commands/message/viewRaw.ts
+++ b/src/context-menu-commands/message/viewRaw.ts
@@ -1,18 +1,18 @@
import { ViewRawCommand } from '#commands';
import { type BushMessage } from '#lib';
import { ContextMenuCommand } from 'discord-akairo';
-import { type ContextMenuInteraction } from 'discord.js';
+import { ApplicationCommandType, type ContextMenuCommandInteraction } from 'discord.js';
export default class ViewRawContextMenuCommand extends ContextMenuCommand {
public constructor() {
super('viewRaw', {
name: 'View Raw',
- type: 'MESSAGE',
+ type: ApplicationCommandType.Message,
category: 'message'
});
}
- public override async exec(interaction: ContextMenuInteraction) {
+ public override async exec(interaction: ContextMenuCommandInteraction) {
await interaction.deferReply({ ephemeral: true });
const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, {
json: false,