-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathButtontests.js
49 lines (41 loc) · 1.65 KB
/
Buttontests.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
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, StringMenuComponent, StringSelectMenu, userSelectMenu } from "../structures/interactions/MessageSelectMenu.js";
/**
* @param {message} mog
*/
export async function buttonTests(mog) {
var m = new message();
const btnSuccess = new Button();
btnSuccess.style = MessageButtonStyles.SUCCESS;
btnSuccess.label = "SUCCESS";
btnSuccess.custom_id = "tempbtnsu";
const btnDanger = new Button();
btnDanger.style = MessageButtonStyles.DANGER;
btnDanger.label = "HELLO WORLD";
btnDanger.custom_id = "tempbtnda";
const btnSecondary = new Button();
btnSecondary.style = MessageButtonStyles.SECONDARY;
btnSecondary.label = "HELLO WORLD";
btnSecondary.custom_id = "tempbtnse";
const btnPrim = new Button();
btnPrim.style = MessageButtonStyles.PRIMARY;
btnPrim.label = "HELLO WORLD";
btnPrim.custom_id = "temppr";
const btnLink = new Button();
btnLink.style = MessageButtonStyles.LINK;
btnLink.label = "HELLO WORLD";
btnLink.url = 'https://www.google.com/';
const row = new MessageActionRow();
row.addComponent(btnSuccess);
row.addComponent(btnDanger);
row.addComponent(btnSecondary);
row.addComponent(btnPrim);
row.addComponent(btnLink);
m.addComponents(row);
m.content = "OOGA BOOGA";
mog.reply(m);
}