This commit is contained in:
ITOH
2021-06-13 21:50:19 +02:00
parent 188ffdc1f8
commit 6792c6b97d
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -133,6 +133,7 @@ import { createStageInstance } from "./channels/create_stage_instance.ts";
import { updateStageInstance } from "./channels/update_stage_instance.ts"; import { updateStageInstance } from "./channels/update_stage_instance.ts";
import { getStageInstance } from "./channels/get_stage_instance.ts"; import { getStageInstance } from "./channels/get_stage_instance.ts";
import { deleteStageInstance } from "./channels/delete_stage_instance.ts"; import { deleteStageInstance } from "./channels/delete_stage_instance.ts";
import { isSlashCommand } from "./type_guards/is_slash_command.ts";
export { export {
addDiscoverySubcategory, addDiscoverySubcategory,
@@ -242,6 +243,7 @@ export {
guildSplashURL, guildSplashURL,
isButton, isButton,
isSelectMenu, isSelectMenu,
isSlashCommand,
isChannelSynced, isChannelSynced,
kick, kick,
kickMember, kickMember,
@@ -1,5 +1,5 @@
import { Interaction, SlashCommandInteraction } from "../../interactions/interaction.ts"; import { Interaction, SlashCommandInteraction } from "../../types/interactions/interaction.ts";
import { DiscordInteractionTypes } from "../../interactions/interaction_types.ts"; import { DiscordInteractionTypes } from "../../types/interactions/interaction_types.ts";
/** A type guard function to tell if it is a slash command interaction */ /** A type guard function to tell if it is a slash command interaction */
export function isSlashCommand(interaction: Interaction): interaction is SlashCommandInteraction { export function isSlashCommand(interaction: Interaction): interaction is SlashCommandInteraction {