mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Added message select menues (mentionable not available)
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import switchConsoleDefault from '../utils/consoleToFile.js';
|
||||
import { Client, gateWayIntents, message, Interaction } from '../structures/types.js';
|
||||
import config from '../config.json' assert { type: 'json' };
|
||||
import { buttonTests } from './Buttontests.js';
|
||||
import { createMenuTests } from './menuTests.js';
|
||||
const { bottoken } = config;
|
||||
|
||||
// switchConsoleDefault();
|
||||
|
||||
var c = new Client({
|
||||
intents: [
|
||||
gateWayIntents.Guilds,
|
||||
@@ -26,6 +30,8 @@ c.login(bottoken);
|
||||
c.on('messageRecieved', /**@param {message} message*/ async (message) => {
|
||||
if (message.content == 'buttontest') {
|
||||
return buttonTests(message);
|
||||
} else if (message.content == 'menutest') {
|
||||
return createMenuTests(message);
|
||||
}
|
||||
(await import('./messageTests.js')).default(message);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user