diff --git a/src/templates/templates.ts b/src/templates/templates.ts index af3e8a6..203e5d8 100644 --- a/src/templates/templates.ts +++ b/src/templates/templates.ts @@ -6,10 +6,10 @@ export function getEnvTemplate(token: string, prefix: string) { export function getMainFile() { return ` -const { Client, Intents } = require('discord.js'); +const { Client, GatewayIntentBits } = require('discord.js'); const { registerCommands, registerEvents } = require('./utils/registry'); const config = require('../slappey.json'); -const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES ] }); +const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages ] }); (async () => { client.commands = new Map();