feat: ClickButton with location

This commit is contained in:
March 7th
2022-12-02 18:29:57 +07:00
parent f20430452f
commit b191df3e99
2 changed files with 39 additions and 32 deletions

7
typings/index.d.ts vendored
View File

@@ -1974,7 +1974,7 @@ export class Message<Cached extends boolean = boolean> extends Base {
// Added
public markUnread(): Promise<boolean>;
public markRead(): Promise<boolean>;
public clickButton(button: MessageButton | string | null): Promise<InteractionResponse>;
public clickButton(button?: MessageButton | MessageButtonLocation | string): Promise<InteractionResponse>;
public selectMenu(menuID: string, options: string[]): Promise<InteractionResponse>;
public selectMenu(options: string[]): Promise<InteractionResponse>;
public contextMenu(botID: Snowflake, commandName: string): Promise<InteractionResponse>;
@@ -6625,6 +6625,11 @@ export interface StartThreadOptions {
rateLimitPerUser?: number;
}
export interface MessageButtonLocation {
row: number;
colunm: number;
}
export type Status = number;
export type StickerFormatType = keyof typeof StickerFormatTypes;