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;