my bot doesnt respond when i input my command?

Here is my code, my bot doesnt seem to respond when i put "!hello" in chat, what can i do to fix this?
10 Replies
d.js toolkit
d.js toolkit10mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
K✰LEL
K✰LEL10mo ago
discord.js@14.12.1
d.js docs
d.js docs10mo ago
Tag suggestion for @vesperasolis.:
All my bot tokens are refreshing non stop!
Discord does not actually store any tokens in their database. Whenever you visit the page it will generate a new token for you. Unless you press the "generate new token" button all of these tokens are valid.
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
K✰LEL
K✰LEL10mo ago
yup will do! 👍
d.js docs
d.js docs10mo ago
If you aren't getting content, embeds or attachments of a message, make sure you have the MessageContent intent enabled in the Developer Portal and provide it to your client:
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
K✰LEL
K✰LEL10mo ago
Ahh okay one second
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
K✰LEL
K✰LEL10mo ago
okay thank you so much!
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View