© 2026 Hedgehog Software, LLC
// Create REST and WebSocket managers directly const rest: REST = new REST({ version: '10' }).setToken(process.env.DISCORD_TOKEN); const intents = [GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent] const gateway = new WebSocketManager({ token: process.env.DISCORD_TOKEN, intents: GatewayIntentBits.GuildMessages | GatewayIntentBits.MessageContent, rest, }); // Create a client to emit relevant events. const client = new Client({ rest, gateway });
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.on(Events.ClientReady, msg => {
gateway.on(Events.ClientReady, msg => {