117
rated 0 times
[
119]
[
2]
/ answers: 1 / hits: 69441
/ 6 Years ago, tue, may 22, 2018, 12:00:00
I'm trying to make a discord bot with DiscordJS
I want to fetch a specific channel :
const Discord = require('discord.js');
var bot = new Discord.Client();
var myToken = 'NDQ2OTQ1...................................................';
var channelFind = bot.channels.find("id","XXXXXXXXXXX"); // null
var channelGet = bot.channels.get("id","XXXXXXXXXXX"); // undefined
Whenever I run my bot, it returns null
with find
and undefined
with get
.
I also tried to find my channel by name
More From » node.js