Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down