From d0425020bf70baebc3e467929bc464dd7e8f8704 Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:26:43 -0400 Subject: [PATCH] fix: isMenu() guard type --- src/commands/basecontex.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/basecontex.ts b/src/commands/basecontex.ts index 65e7d6b..401fb75 100644 --- a/src/commands/basecontex.ts +++ b/src/commands/basecontex.ts @@ -1,10 +1,10 @@ import { ApplicationCommandType, InteractionType } from 'discord-api-types/v10'; -import type { ComponentContext, ComponentCommandInteractionMap } from '../components/componentcontext'; +import type { ComponentCommandInteractionMap, ComponentContext } from '../components/componentcontext'; import { - type ChatInputCommandInteraction, - type ComponentInteraction, Message, User, + type ChatInputCommandInteraction, + type ComponentInteraction, type MessageCommandInteraction, type UserCommandInteraction, } from '../structures'; @@ -24,7 +24,7 @@ export class BaseContext { return this.message || (this.interaction as ChatInputCommandInteraction).type === ApplicationCommandType.ChatInput; } - isMenu(): this is MenuCommandContext { + isMenu(): this is MenuCommandContext { return this.isMenuUser() || this.isMenuMessage(); }