Files
archived-templates/templates/javascript/index.js
2022-06-02 22:18:36 -05:00

20 lines
466 B
JavaScript

import { Client, GatewayIntentBits } from 'discord.js';
import { Sern } from '@sern/handler';
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent, // Make sure this is enabled for text commands!
],
});
Sern.init({
client,
defaultPrefix: '!', // removing defaultPrefix will shut down text commands
commands: 'commands',
});
client.login();