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
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
Stqlth
Stqlth16mo ago
node version 16.18.0
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
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
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
hmm, in my testing it worked in DMs
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
any reason why this would only happen on user commands? it has never happened on a slash command interaction for me
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
slash commands probably caches in channels yea
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
makes sense, thanks!
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
maybe discordjs should be cacheing channels on other interactions as well? or was this a design choice you too!
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Stqlth
Stqlth16mo ago
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
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View