Closed GoogleSites closed 3 years ago
The lack of channelId and guildId also breaks most Message methods, like editing, removing reactions, and pretty much everything else (which is fixed with these additions).
good catch, one would think the message would inherit that information from the channel its being added to, but i guess discord.js broke that when they changed channel and guild to getters
Currently, the
reaction
parameter in theguildReactionAdd
andguildReactionRemove
events return DMChannel channel types,null
guild andundefined
channelId (among all other missing data). This is due to the lack of information passed toBase#_add
, which in turn doesn't set the correspondingguildId
orchannelId
parameters to the message when creating it, trickling the lack of information down to the corresponding MessageReactions originating from the Message. I have addedchannel_jd
andguild_id
to correctly return the channel and guild from reactions. I'm not sure if there's anything else to add there, but I'm sure you know more than me about it.