37 lines
793 B
TypeScript
37 lines
793 B
TypeScript
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?];
|
|
}
|