#When the bot is online and I try to use a command, it doesn't work and doesn't give me error message

29 messages · Page 1 of 1 (latest)

fading quiverBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
  • Marked as resolved by OP
halcyon flameBOT
#

To share long code snippets, use a service like gist, sourcebin, starbin, or similar instead of posting them as large code blocks or files.

silk oyster
#

Use a proper paster. Not google docs

fast compass
#

give me one sec..

acoustic rock
#

Version 16 exists for discord.js?
I thought 14 was latest

silk oyster
#

but yes, this is indeed worded incorrectly

fast compass
fast compass
#

is this ok?

silk oyster
#

thats a non existent script

#

And i dont know where you got those html tags from

#

use a sourcebin or starbin

fast compass
#

I guess it's fine now

acoustic rock
#

Just an irrelevant question, why aren't you using slash commands?

fast compass
acoustic rock
#

Like this

halcyon flameBOT
#

guide Creating Your Bot: Creating slash commands
read more

fast compass
halcyon flameBOT
#

Tag suggestion for @fast compass:
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]
});
fast compass
#

is already enabled Message Content

silk oyster
fast compass
silk oyster
#

add it to your client constructor

#

Or just use slash commands and remove the need for the intent mmLol