【发布时间】:2019-04-24 13:54:54
【问题描述】:
当我执行 !x 命令时,它说
(node:10124) DeprecationWarning: Collection#find: pass a function instead
(node:10124) DeprecationWarning: Collection#find: pass a function instead
如控制台日志所述,问题出在...let channe.. ..downchan...
exports.startScrim = function(guild,host,type,time){
const embed = new RichEmbed()
.setColor(0x91bbff)
.addField("message x","another message"+exports.one(time),false)
.addField("Mode",type.toUpperCase(),true)
.addField("Host",host,true)
.addField("Instructions","message x",false)
let channel = guild.channels.find("name",guilds[guild.id].digitchan);
let channel2 = guild.channels.find("name",guilds[guild.id].countdownchan);
if (channel && channel2) {
channel.send(embed)`
并且下一行channel.send(embed) 甚至没有执行。帮忙!
【问题讨论】:
标签: discord.js