You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After 2-3 hours of working bot turns off, debug logs says that the bot token is invalid, but i can still reactivate the bot with the same token, please i really need help with it i can't even imagine what can i do with this.
I've done everything as in discord js guide.
importing token from json
const { token } = require('./json/config.json');
@Jiralite Just reminding you this issue is still incorrectly closed. This is a separate issue than #8486 and should be re-opened to prevent confusion for an already complicated bug. This issue in particular is a token expiration issue.
Which package is this bug report for?
discord.js
Issue description
After 2-3 hours of working bot turns off, debug logs says that the bot token is invalid, but i can still reactivate the bot with the same token, please i really need help with it i can't even imagine what can i do with this.
I've done everything as in discord js guide.
importing token from json
const { token } = require('./json/config.json');
client init
const client = new Client({ intents: [GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages, GatewayIntentBits.Guilds] });
running the bot
client.login(token);
initing rest
const rest = new REST({ version: '10' }).setToken(token);
Code sample
Package version
14
Node.js version
discord.js@14.3.0
Operating system
node v16.16.0
Priority this issue should have
High (immediate attention needed)
Which partials do you have configured?
No Partials
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildMessages, MessageContent
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: