feat: update SelectMenuInteraction type for improved type safety
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import type {
|
import type {
|
||||||
ButtonInteraction,
|
ButtonInteraction,
|
||||||
ModalSubmitInteraction,
|
ModalSubmitInteraction,
|
||||||
AnySelectMenuInteraction,
|
SelectMenuInteraction,
|
||||||
ContextMenuCommandInteraction
|
ContextMenuCommandInteraction
|
||||||
} from "discord.js";
|
} from "discord.js";
|
||||||
import type Amayo from "../client";
|
import type Amayo from "../client";
|
||||||
@@ -19,7 +19,7 @@ export interface Modal {
|
|||||||
|
|
||||||
export interface SelectMenu {
|
export interface SelectMenu {
|
||||||
customId: string;
|
customId: string;
|
||||||
run: (interaction: AnySelectMenuInteraction, client: Amayo) => Promise<unknown>;
|
run: (interaction: SelectMenuInteraction, client: Amayo) => Promise<unknown>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ContextMenu {
|
export interface ContextMenu {
|
||||||
|
|||||||
Reference in New Issue
Block a user