mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
|
|
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 } from "../structures/interactions/StringSelectMenu.js";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @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";
|
||
|
|
|
||
|
|
const row = new MessageActionRow();
|
||
|
|
// row.addComponent(comp);
|
||
|
|
row.addComponent(c);
|
||
|
|
m.addComponents(row);
|
||
|
|
m.content = "OOGA BOOGA";
|
||
|
|
|
||
|
|
mog.reply(m);
|
||
|
|
}
|