-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenuTests.js
56 lines (42 loc) · 1.61 KB
/
menuTests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { Button } from "../structures/interactions/Button.js";
import { Channel } from "../structures/guilds/Channel.js";
import { message } from "../structures/messages/message.js";
import { MessageButtonStyles } from "../structures/interactions/ButtonStyles.js";
import { MessageActionRow } from "../structures/messages/MessageActionRow.js";
import { ChannelSelectMenu, RoleSelectMenu, StringMenuComponent, StringSelectMenu, userSelectMenu } from "../structures/interactions/MessageSelectMenu.js";
/**
* @param {message} mog
*/
export async function createMenuTests(mog) {
var m = new message();
const sMenu = new StringSelectMenu();
const stringComp = new StringMenuComponent();
stringComp.value = 'llllll';
stringComp.label = 'llllll';
const stringComp2 = new StringMenuComponent();
stringComp2.value = 'pppppp';
stringComp2.label = 'pppppp';
sMenu.data.push(stringComp);
sMenu.data.push(stringComp2);
sMenu.custom_id = "temp";
sMenu.max_values = 2;
const uMenu = new userSelectMenu();
uMenu.custom_id = "userMenu";
const cMenu = new ChannelSelectMenu();
cMenu.custom_id = "channelMenu";
const rMenu = new RoleSelectMenu();
rMenu.custom_id = "roleMenu";
const row = new MessageActionRow();
row.addComponent(uMenu);
m.addComponents(row);
const row2 = new MessageActionRow();
row2.addComponent(sMenu);
m.addComponents(row2);
const row3 = new MessageActionRow();
row3.addComponent(rMenu);
m.addComponents(row3);
m.content = "OOGA BOOGA";
mog.reply(m);
}
export async function handleMenuTests(menu) {
}