Cannot read properties of undefined (reading '_add')
I am currently encountering the error (see screenshots), I have found references to something similar in the following github issue: (https://github.com/discordjs/discord.js/issues/7749), however, that issue was marked as fixed. I found this error in my production logs and I have been unable to reproduced it, all I know is that it has only happened on UserCommands (like right click a user -> apps -> command), I have also tracked down the location to the following location (see screenshots/Line 230 in Webhook.js)
I have been unable to find any other references to this other than it happening in voice channels, which, as I stated, I have been unable to reproduce. Any help or insight is welcomed
18 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
node version 16.18.0
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I have all the correct intents setup, the channels cache should be kept up to date by discordjs
is this something that is just unavoidable and will sometimes happen?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
hmm, in my testing it worked in DMs
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
any reason why this would only happen on user commands? it has never happened on a slash command interaction for me
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
slash commands probably caches in channels
yea
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
makes sense, thanks!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
maybe discordjs should be cacheing channels on other interactions as well? or was this a design choice
you too!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
let me check
yep I just got it too, interestingly though it still sends the message lol
perfect thanks!
makes sense, thanks to both of you.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View