From 036ebd92240289c6d5489b17fbeeb6e9ba9f4698 Mon Sep 17 00:00:00 2001 From: hocsinhgioitoan <89916615+hocsinhgioitoan@users.noreply.github.com> Date: Wed, 19 Apr 2023 17:25:53 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(TextBasedChannel.js):=20chan?= =?UTF-8?q?ge=20send=20method=20name=20from=20send=20to=20sendSlash=20?= =?UTF-8?q?=F0=9F=90=9B=20fix(index.d.ts):=20change=20applicationId=20para?= =?UTF-8?q?meter=20type=20from=20ApplicationCommandTypes=20to=20Snowflake?= =?UTF-8?q?=20in=20searchInteraction=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/structures/interfaces/TextBasedChannel.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index c07fed2..4584fcb 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -452,7 +452,7 @@ class TextBasedChannel { * .catch(console.error); * @example * // Send a remote file - * channel.send('botid', 'emoji upload', 'https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048', 'test') + * channel.sendSlash('botid', 'emoji upload', 'https://cdn.discordapp.com/icons/222078108977594368/6e1019b3179d71046e463a75915e7244.png?size=2048', 'test') * .then(console.log) * .catch(console.error); * @see {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/SlashCommand.md} diff --git a/typings/index.d.ts b/typings/index.d.ts index 3957666..fa73f9c 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4446,7 +4446,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields { fetchWebhooks(): Promise>; sendTyping(): Promise; sendSlash(bot: UserResolvable, commandName: string, ...args: any): Promise; - searchInteraction(applicationId: ApplicationCommandTypes, type?: ApplicationCommandTypes): Promise; + searchInteraction(applicationId: Snowflake, type?: ApplicationCommandTypes): Promise; } export function PartialWebhookMixin(Base?: Constructable): Constructable;