This commit is contained in:
2021-07-11 19:20:33 -05:00
parent 61a23df056
commit 9b83148551
3 changed files with 111 additions and 49 deletions

36
types/Opt.d.ts vendored Normal file
View File

@@ -0,0 +1,36 @@
import { MessageActionRow, MessageButton, MessageButtonStyleResolvable, MessageComponent, MessageMenu, MessageMenuOption } from 'discord-buttons';
import { Message, TextChannel } from 'discord.js';
//menu
export interface MenuOptions {
label: string;
emoji?: string;
val: string;
desc?: string;
roleid: string;
default?: boolean;
}
export interface Menu {
type: 'menu';
message: string;
palceholder: string;
id: string;
max: number|'all';
options: MenuOptions[];
}
//row
export interface RowButton {
style: MessageButtonStyleResolvable;
label: string;
id: string;
roleid: string;
}
export interface Row {
type: 'row';
message: string;
buttons: [RowButton?, RowButton?, RowButton?, RowButton?, RowButton?];
}