Added message select menues (mentionable not available)

This commit is contained in:
ION606
2023-04-16 19:50:45 -04:00
parent ed16d4aeca
commit 7996d6af7c
16 changed files with 313 additions and 51 deletions
+6
View File
@@ -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);
});