person is undefined. Works with msg.guild, but not with client.guilds.cache.get(“valid id”)

前端 未结 0 562
孤街浪徒
孤街浪徒 2021-01-31 05:29
var mainServer = client.guilds.cache.get("a valid id")
var person = mainServer.members.cache.get(obj.users[userIndex].discordid)

mainServer is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题