Merge pull request #623 from hocsinhgioitoan/main

🐛 fix(types)
This commit is contained in:
Elysia 2023-04-19 17:33:04 +07:00 committed by GitHub
commit 3cc4c5135e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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}

2
typings/index.d.ts vendored
View File

@ -4446,7 +4446,7 @@ export interface TextBasedChannelFields extends PartialTextBasedChannelFields {
fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
sendTyping(): Promise<void>;
sendSlash(bot: UserResolvable, commandName: string, ...args: any): Promise<InteractionResponse>;
searchInteraction(applicationId: ApplicationCommandTypes, type?: ApplicationCommandTypes): Promise<object>;
searchInteraction(applicationId: Snowflake, type?: ApplicationCommandTypes): Promise<object>;
}
export function PartialWebhookMixin<T>(Base?: Constructable<T>): Constructable<T & PartialWebhookFields>;