From 661e4c9935aeb8760dafc7ced4bbec6cc356a033 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 14 Jun 2022 12:47:57 -0400 Subject: remove the war crimes that I previously committed - Remove custom typings and replace with declaration merging - Fix the typings for args - Replace all discord-api-types imports with discord.js imports - Fix discord.js breaking changes --- src/context-menu-commands/message/viewRaw.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/context-menu-commands/message') 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 }); -- cgit