discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
discord.js get user by id
client.users.cache.find(user => user.id === 'USER-ID')
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);
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