Skip to content

Fixed a couple DiscordPresence properties returning null

Mateusz Brawański requested to merge github/fork/Neuheit/fixActivities into master

Created by: Neuheit

Summary

This PR fixes #496 (closed).

Details

I discovered that that both DiscordPresence.Activities and DiscordPresence.GuildId were not initialized during the internal guild create handler, and were only set after a presence update. This PR should fix that.

Changes proposed

  • Made both the DiscordPresence.Activities and DiscordPresence.GuildId initialize during the guild create handler.

Notes

On an unrelated note I found that the properties Activity and Activities somewhat confusing, and I feel that Activity should be renamed to CurrentActivity or something similar. Let me know your opinions on this.

Merge request reports

Loading