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)
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)
how to get a channelid discord.js
message.guild.channels.cache.get(channelid);
discord.js create channel and get id
guild.channels.create('Channel Tempo', { type: 'category' }).then(result => {
console.log('Here is channel id', result.id)
//Logs he channel id
//from https://stackoverflow.com/questions/61197547/get-id-after-discord-js-channel-creation
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')
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us