Typeseedcordv0.12.0Internal
type AssertContextMenuRoute<
Kind extends ApplicationCommandType.User | ApplicationCommandType.Message,
TCtor extends new (
...args: any[]
) => InteractionHandler<Repliables>
> = [Kind] extends [ContextMenuKindOf<TCtor>]
? [ContextMenuKindOf<TCtor>] extends [Kind]
? TCtor
: Constructor<
[
"ContextMenuHandler declares a kind the ContextMenuRoute decorator does not match",
ContextMenuKindOf<TCtor>
]
>
: Constructor<
[
"ContextMenuRoute does not match the ContextMenuHandler generic",
Kind
]
>;type AssertContextMenuRoute<
Kind extends ApplicationCommandType.User | ApplicationCommandType.Message,
TCtor extends new (
...args: any[]
) => InteractionHandler<Repliables>
> = [Kind] extends [ContextMenuKindOf<TCtor>]
? [ContextMenuKindOf<TCtor>] extends [Kind]
? TCtor
: Constructor<
[
"ContextMenuHandler declares a kind the ContextMenuRoute decorator does not match",
ContextMenuKindOf<TCtor>
]
>
: Constructor<
[
"ContextMenuRoute does not match the ContextMenuHandler generic",
Kind
]
>;Kind
Kind extends ApplicationCommandType.User | ApplicationCommandType.MessageKind extends ApplicationCommandType.User | ApplicationCommandType.MessageTCtor
TCtor extends new (...args: any[]) => InteractionHandler<Repliables>TCtor extends new (...args: any[]) => InteractionHandler<Repliables>