🐛 fix(TextBasedChannel.js): change send method name from send to sendSlash 🐛 fix(index.d.ts): change applicationId parameter type from ApplicationCommandTypes to Snowflake in searchInteraction method

This commit is contained in:
hocsinhgioitoan 2023-04-19 17:25:53 +07:00
parent 9c9f573dc1
commit 036ebd9224
2 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ class TextBasedChannel {
* .catch(console.error); * .catch(console.error);
* @example * @example
* // Send a remote file * // 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) * .then(console.log)
* .catch(console.error); * .catch(console.error);
* @see {@link https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Document/SlashCommand.md} * @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>>; fetchWebhooks(): Promise<Collection<Snowflake, Webhook>>;
sendTyping(): Promise<void>; sendTyping(): Promise<void>;
sendSlash(bot: UserResolvable, commandName: string, ...args: any): Promise<InteractionResponse>; 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>; export function PartialWebhookMixin<T>(Base?: Constructable<T>): Constructable<T & PartialWebhookFields>;