DISCORD BOT JS ERROR

Status
This thread has been locked.

FelixDev

Typical Developer and Designer
Premium
Feedback score
9
Posts
1,123
Reactions
331
Resources
0
I got an error "client.on("message", (message) => {
How do I get a channels id. Isnt it message.channels.get("").send("message");???
})
 

PhantomBreeze

Feedback score
0
Posts
7
Reactions
0
Resources
0
One of our Discord Bot Developers can more than likely help you with this at Senior Team.

I have sent you a PM :)
 

FelixDev

Typical Developer and Designer
Premium
Feedback score
9
Posts
1,123
Reactions
331
Resources
0

FelixDev

Typical Developer and Designer
Premium
Feedback score
9
Posts
1,123
Reactions
331
Resources
0

Dorian349

Discord Bot Developer
Supreme
Feedback score
27
Posts
137
Reactions
134
Resources
4
Code:
message.guild.channels.get("channelid")
^^ that worked well.
And if you want with a Name, just use this:
Code:
message.guild.channels.find(channel => channel.name === "channelname");
 

FelixDev

Typical Developer and Designer
Premium
Feedback score
9
Posts
1,123
Reactions
331
Resources
0
And if you want with a Name, just use this:
Code:
message.guild.channels.find(channel => channel.name === "channelname");
Yepp, understand thanks <3
 
Status
This thread has been locked.
Top