Skip to content

Fix User Instance Not Being Found in the MessageReactionAdded event.

Mateusz Brawański requested to merge patch/581 into master

Created by: Neuheit

Summary

Fixes #581 (closed).

Details

This PR fixes an issue of a key not found exception being thrown in the message reaction added event by automatically updating it with the member object sent with the event. This also allows the .User property in the reaction added event args to be cast to a DiscordMember

Changes proposed

  • Automatically update user cache with member instance passed from the event.
  • Allow the respective event args to be cast to a member.
  • Made changes to XML docs for those event args and the DiscordVoiceState to inform that the user object is castable.

Merge request reports

Loading