-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
Which package is this bug report for?
discord.js
Issue description
An error occurs at startup:
TypeError: Cannot read properties of null (reading 'displayName')
The most important part: bot should not be on any server
Code sample
const { Client, Events } = require('discord.js')
const { token } = require('./config.json')
const client = new Client({
intents: []
})
client.once(Events.ClientReady, (client) => console.log(`${client.user.displayName} is ready!`))
client.login(token)Versions
discord.js - 15.0.0-dev.1760486511-25b22c67a
node.js - v23.10.0
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
No Intents