mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: isMenu() guard type
This commit is contained in:
parent
67c90eb03a
commit
d0425020bf
@ -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<any> {
|
||||
isMenu(): this is MenuCommandContext<UserCommandInteraction | MessageCommandInteraction> {
|
||||
return this.isMenuUser() || this.isMenuMessage();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user