Files
IKEA-Canada-Support/types/Opt.d.ts
2021-08-19 23:54:15 -05:00

36 lines
663 B
TypeScript

import { MessageButtonStyleResolvable } from 'discord.js';
//menu
export interface MenuOptions {
label: string;
emoji?: string;
value: string;
description?: 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?];
}