mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-06-06 00:07:01 +00:00
added message select menus
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user