从名称discord.js获取频道ID时出错

时间:2020-02-07 21:43:03

标签: node.js discord discord.js

msg.guild.createChannel(`ticket-${newdata}`, "text")
  .then(channel => {channel.setParent(parentID); })
  .catch(console.error);

let newchannel = guild.channels
  .find(channel => channel.name === `ticket-${newdata}`);

console.log(newchannel); //returns null

log命令返回null ... 有人给我一些提示吗? :D

thx

-嘎吱嘎吱

0 个答案:

没有答案