disclient
Version:
A powerfull discord api wrapper.
32 lines (31 loc) • 904 B
TypeScript
declare type ButtonStyle = "Primary" | "Secondary" | "Success" | "Danger" | "Link";
declare type EmojiOptions = {
id: string;
name: string;
};
export declare class Button {
private _type;
private _style;
private _label;
private _emoji;
private _custom_id;
private _url;
private _disabled;
constructor();
setLabel(label: string): Promise<void>;
setID(id: string): Promise<void>;
setUrl(url: string): Promise<void>;
setDisabled(yesorno: boolean): Promise<void>;
setStyle(options: ButtonStyle): Promise<void>;
setEmoji(options: EmojiOptions): Promise<void>;
get create(): {
type: number;
style: number | null;
label: string | null;
emoji: EmojiOptions | null;
custom_id: string | null;
url: string | null;
disabled: boolean | null;
};
}
export {};