[英]TypeError: fn.bind is not a function with Discord.js Guild Member Update Event
我正在嘗試為GuildMemberUpdate
事件制作日志,但每當我運行代碼時,我都會收到。 錯誤在這里,我還在事件中提供了代碼。 我已將 node 和 npm 版本更新為最新版本,但仍然出現相同的錯誤。 我也更新了我的 package.json 和 package-lock.json 文件,但它仍然給出相同的錯誤。
TypeError: fn.bind is not a function
在版本 12 中, find
take 函數。
改變
newMember.roles.cache.find('id', value.id)
到
newMember.roles.cache.find(value => value.id == "id")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.