comments
This commit is contained in:
36
types/Opt.d.ts
vendored
Normal file
36
types/Opt.d.ts
vendored
Normal 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?];
|
||||
}
|
||||
Reference in New Issue
Block a user