feat(TextChannel): add searchInteraction
This commit is contained in:
14
typings/index.d.ts
vendored
14
typings/index.d.ts
vendored
@@ -1300,7 +1300,6 @@ export class Guild extends AnonymousGuild {
|
||||
public fetchAuditLogs<T extends GuildAuditLogsResolvable = 'ALL'>(
|
||||
options?: GuildAuditLogsFetchOptions<T>,
|
||||
): Promise<GuildAuditLogs<T>>;
|
||||
public searchInteraction(options?: guildSearchInteraction): Promise<Collection<Snowflake, ApplicationCommand>>;
|
||||
public fetchIntegrations(): Promise<Collection<Snowflake | string, Integration>>;
|
||||
public fetchOwner(options?: BaseFetchOptions): Promise<GuildMember>;
|
||||
public fetchPreview(): Promise<GuildPreview>;
|
||||
@@ -4132,6 +4131,10 @@ 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>;
|
||||
}
|
||||
|
||||
export function PartialWebhookMixin<T>(Base?: Constructable<T>): Constructable<T & PartialWebhookFields>;
|
||||
@@ -4379,15 +4382,6 @@ export interface ApplicationAsset {
|
||||
type: 'BIG' | 'SMALL';
|
||||
}
|
||||
|
||||
// copy
|
||||
export interface guildSearchInteraction {
|
||||
type?: ApplicationCommandTypes;
|
||||
query?: string | null | undefined;
|
||||
limit?: number;
|
||||
offset?: number;
|
||||
botID?: Snowflake;
|
||||
}
|
||||
|
||||
export interface ClientEvents extends BaseClientEvents {
|
||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
||||
applicationCommandCreate: [command: ApplicationCommand];
|
||||
|
Reference in New Issue
Block a user