Send message to specific channel with typescript
I want to send a greeting message to an "welcome" text channel, whenever a new user joins the server (guild). The problem I'm facing is that, when I find the wanted channel, I will receive the channel with the type GuildChannel . Since GuildChannel has no send() function, I'm not able to send the message. But I can't find a way to find the TextChannel , so I'm stuck here. How can I get to the TextChannel so that I'm able to use the send() message? Below the code I'm using by now: // Get the log channel (change to your liking) const logChannel = guild.channels.find(123456); if (!logChannel)