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 toolkit17mo 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!
d.js docs
d.js docs17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View
K✰LEL
K✰LELOP17mo ago
yup will do! 👍
d.js docs
d.js docs17mo 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✰LELOP17mo ago
Ahh okay one second
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
K✰LEL
K✰LELOP17mo ago
okay thank you so much!
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server