DISCORD BOT JS ERROR

Status
This thread has been locked.

FelixDev

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

PhantomBreeze

Member
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,124
Reactions
331
Resources
1

FelixDev

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

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,124
Reactions
331
Resources
1
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
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.