I have been making a discord bot and wanted to make it send a message to a specific \"Welcome\" channel. Unfortunately, I have been unable to do so. I tried this.
Your error could come from the fact that you're using bot.channels.get()
, which isn't the best idea, because discord.js isn't very friendly when it comes to using .send()
on multiple items.
Instead, try to use member.guild.channels.find("name", "channel").send();
, if possible. If this is in the client.on("message")
, then simply use message.member.channels.find("name", "channel").send();
Sidenote: My memory is mixed up, so if that doesn't work, try .get()
instead of find
.