36 lines
663 B
TypeScript
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?];
|
|
}
|