Files
custom_discordjs/tests/Buttontests.js
T

36 lines
1.2 KiB
JavaScript
Raw Normal View History

2023-04-08 16:33:58 -04:00
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";
2023-04-14 16:52:56 -04:00
import { ChannelSelectMenu, StringMenuComponent, StringSelectMenu, userSelectMenu } from "../structures/interactions/MessageSelectMenu.js";
2023-04-08 16:33:58 -04:00
/**
* @param {message} mog
*/
export async function buttonTests(mog) {
var m = new message();
// const comp = new Button();
// comp.style = MessageButtonStyles.SUCCESS;
// comp.label = "HELLO WORLD";
// comp.custom_id = "temptemp";
const c = new StringSelectMenu();
const comp2 = new StringMenuComponent();
comp2.value = 'llllll';
comp2.label = 'llllll';
c.options.push(comp2);
c.custom_id = "temp";
2023-04-14 16:52:56 -04:00
const comp3 = new userSelectMenu();
comp3.custom_id = "userMenu";
2023-04-08 16:33:58 -04:00
const row = new MessageActionRow();
// row.addComponent(comp);
2023-04-14 16:52:56 -04:00
// row.addComponent(c);
row.addComponent(comp3);
2023-04-08 16:33:58 -04:00
m.addComponents(row);
m.content = "OOGA BOOGA";
mog.reply(m);
}