gpt4 book ai didi

discord.js - message.guild.roles.find 不是函数

转载 作者:行者123 更新时间:2023-12-03 20:26:17 24 4
gpt4 key购买 nike

编辑自我回答message.guild.roles.find is not a function是在 DJS v12 上使用 DJS v11 方法的结果,换句话说 message.guild.roles.find已过时,应替换为message.guild.roles.cache.findDJS v11 现已停产。按照本指南更新 v12 的代码 Here

最佳答案

是的,您现在必须使用 message.guild.roles.cache.find ,因为 v12 使用 Managers。
您可以阅读 documentation自己找其他变化^^

关于discord.js - message.guild.roles.find 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60581194/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com