discord js find channel by name code example

Example 1: Find channel discord js

// Insert the Channel ID in the brackets. TO find that, right click the
// channel and select "Copy ID". Discord Developer must be on.
let channel = message.guild.channels.cache.get(channelid)

Example 2: discord.js find role by name

let role = message.guild.roles.cache.find(role => role.name === "Rolename");

Example 3: message.channel.name.includes

if (!message.channel.name.includes("bot-commands")) return message.channel.send('do commands only at <#bot-commands-id>');
    if(message.content.startswith(`${prefix}help`)){
message.channel.send('help command')
}