From c4d6e47be494080a9d48196833bc4ee2a976817e Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:44:06 +0000 Subject: [PATCH] fix: name --- src/helpers/interactions/commands/createApplicationCommand.ts | 4 ++-- src/types/discordeno/createApplicationCommand.ts | 4 ++-- .../interactions/commands/createGlobalApplicationCommand.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/helpers/interactions/commands/createApplicationCommand.ts b/src/helpers/interactions/commands/createApplicationCommand.ts index cdc163fe7..009deb707 100644 --- a/src/helpers/interactions/commands/createApplicationCommand.ts +++ b/src/helpers/interactions/commands/createApplicationCommand.ts @@ -1,5 +1,5 @@ import type { ApplicationCommand } from "../../../types/interactions/commands/applicationCommand.ts"; -import type { CreateGlobalApplicationCommand } from "../../../types/interactions/commands/createGlobalApplicationCommand.ts"; +import type { CreateApplicationCommand } from "../../../types/interactions/commands/createGlobalApplicationCommand.ts"; import type { Bot } from "../../../bot.ts"; import { ApplicationCommandOption } from "../../../types/interactions/commands/applicationCommandOption.ts"; @@ -14,7 +14,7 @@ import { ApplicationCommandOption } from "../../../types/interactions/commands/a * Global commands are cached for **1 hour**. That means that new global commands will fan out slowly across all guilds, and will be guaranteed to be updated in an hour. * Guild commands update **instantly**. We recommend you use guild commands for quick testing, and global commands when they're ready for public use. */ -export async function createApplicationCommand(bot: Bot, options: CreateGlobalApplicationCommand, guildId?: bigint) { +export async function createApplicationCommand(bot: Bot, options: CreateApplicationCommand, guildId?: bigint) { const result = await bot.rest.runMethod( bot.rest, "post", diff --git a/src/types/discordeno/createApplicationCommand.ts b/src/types/discordeno/createApplicationCommand.ts index 813ed7bb1..2e4c3f628 100644 --- a/src/types/discordeno/createApplicationCommand.ts +++ b/src/types/discordeno/createApplicationCommand.ts @@ -1,6 +1,6 @@ -import { CreateGlobalApplicationCommand } from "../interactions/commands/createGlobalApplicationCommand.ts"; +import { CreateApplicationCommand } from "../interactions/commands/createGlobalApplicationCommand.ts"; -export interface DiscordenoCreateApplicationCommand extends CreateGlobalApplicationCommand { +export interface DiscordenoCreateApplicationCommand extends CreateApplicationCommand { /** Id of the guild to create a guild only application command */ guildId: string; } diff --git a/src/types/interactions/commands/createGlobalApplicationCommand.ts b/src/types/interactions/commands/createGlobalApplicationCommand.ts index e3884a639..25d317949 100644 --- a/src/types/interactions/commands/createGlobalApplicationCommand.ts +++ b/src/types/interactions/commands/createGlobalApplicationCommand.ts @@ -2,7 +2,7 @@ import { ApplicationCommandOption } from "./applicationCommandOption.ts"; import { ApplicationCommandTypes } from "./applicationCommandTypes.ts"; /** https://discord.com/developers/docs/interactions/slash-commands#create-global-application-command-json-params */ -export interface CreateGlobalApplicationCommand { +export interface CreateApplicationCommand { /** 1-31 character name matching lowercase `^[\w-]{1,32}$` */ name: string; /** 1-100 character description */