diff options
Diffstat (limited to 'src/context-menu-commands/message/viewRaw.ts')
-rw-r--r-- | src/context-menu-commands/message/viewRaw.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/context-menu-commands/message/viewRaw.ts b/src/context-menu-commands/message/viewRaw.ts index c283635..6cfe552 100644 --- a/src/context-menu-commands/message/viewRaw.ts +++ b/src/context-menu-commands/message/viewRaw.ts @@ -1,7 +1,6 @@ import { ViewRawCommand } from '#commands'; -import { type BushMessage } from '#lib'; import { ContextMenuCommand } from 'discord-akairo'; -import { ApplicationCommandType, type ContextMenuCommandInteraction } from 'discord.js'; +import { ApplicationCommandType, type ContextMenuCommandInteraction, type Message } from 'discord.js'; export default class ViewRawContextMenuCommand extends ContextMenuCommand { public constructor() { @@ -14,7 +13,7 @@ export default class ViewRawContextMenuCommand extends ContextMenuCommand { public override async exec(interaction: ContextMenuCommandInteraction) { await interaction.deferReply({ ephemeral: true }); - const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as BushMessage, { + const embed = await ViewRawCommand.getRawData(interaction.options.getMessage('message') as Message, { json: false, js: false }); |