to send a message in a specific channel
hello I would like to send a message in a specific channel here is my code
56 Replies
- 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!
error :
Cannot send empty message
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
i try it thx
there are no more errors but the message is not sent
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
ok
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
not work
you are french ?
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
ok
no error
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
yes
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
🤣
im stupid
wait
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
?
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
?
yes
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
noo
as been saved
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
i no handler
😅
you have commands folder..
show ur index.js
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
all index.js ??
just the commands handler part
I do not have any 😅
then how do you access all commands in the
commands
folder?hmm
how ur interactionCreate event looks like
euh ?
mb, i just read the issue, use this in your ping command
I don't think I have one either
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
euh
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Erreur lors de l'envoi du message : TypeError: message.client.channels.get is not a function
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
message.client.channels.cache.get()
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined
- All SCREAMING_SNAKE_CASE
enums have been changed to PascalCase
- Intents: Intents.FLAGS.GUILD_MESSAGES
-> GatewayIntentBits.GuildMessages
- Permissions: Permissions.FLAGS.SEND_MESSAGES
-> PermissionFlagsBits.SendMessages
remove
"GUILD_TEXT"
and use ChannelType.GuildText
🤣
wait
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Yes it is
ok
Hu
Erreur lors de l'envoi du message : ReferenceError: ChannelType is not defined
alors
hmm
import it
const { ChannelType, EmbedBuilder } = require("discord.js");
yes is work
i love you Kin and Disaster
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
🙂
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View