diff --git a/src/helpers/mod.ts b/src/helpers/mod.ts index 639177c4e..fae6ca9c9 100644 --- a/src/helpers/mod.ts +++ b/src/helpers/mod.ts @@ -133,6 +133,7 @@ import { createStageInstance } from "./channels/create_stage_instance.ts"; import { updateStageInstance } from "./channels/update_stage_instance.ts"; import { getStageInstance } from "./channels/get_stage_instance.ts"; import { deleteStageInstance } from "./channels/delete_stage_instance.ts"; +import { isSlashCommand } from "./type_guards/is_slash_command.ts"; export { addDiscoverySubcategory, @@ -242,6 +243,7 @@ export { guildSplashURL, isButton, isSelectMenu, + isSlashCommand, isChannelSynced, kick, kickMember, diff --git a/src/types/channels/threads/is_slash_command.ts b/src/helpers/type_guards/is_slash_command.ts similarity index 57% rename from src/types/channels/threads/is_slash_command.ts rename to src/helpers/type_guards/is_slash_command.ts index 9fedf32c1..bba72dbeb 100644 --- a/src/types/channels/threads/is_slash_command.ts +++ b/src/helpers/type_guards/is_slash_command.ts @@ -1,5 +1,5 @@ -import { Interaction, SlashCommandInteraction } from "../../interactions/interaction.ts"; -import { DiscordInteractionTypes } from "../../interactions/interaction_types.ts"; +import { Interaction, SlashCommandInteraction } from "../../types/interactions/interaction.ts"; +import { DiscordInteractionTypes } from "../../types/interactions/interaction_types.ts"; /** A type guard function to tell if it is a slash command interaction */ export function isSlashCommand(interaction: Interaction): interaction is SlashCommandInteraction {