From 6792c6b97d2f97981deeb4070033de9b25d667d1 Mon Sep 17 00:00:00 2001 From: ITOH Date: Sun, 13 Jun 2021 21:50:19 +0200 Subject: [PATCH] fix this --- src/helpers/mod.ts | 2 ++ .../threads => helpers/type_guards}/is_slash_command.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename src/{types/channels/threads => helpers/type_guards}/is_slash_command.ts (57%) 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 {