Files
IKEA-Canada-Support/types/Opt.d.ts
2021-08-20 03:19:57 -05:00

37 lines
732 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;
id: string; //not needed for api, just needed for slash commands
buttons: [RowButton?, RowButton?, RowButton?, RowButton?, RowButton?];
}