Skip to content

Implemented custom statuses

Created by: Neuheit

Summary

Implemented support for interpreting user custom statuses. This fixes #451 (closed).

Details

I modeled this similarly to DiscordRichPresence in terms of initializing and the UpdateWith method. I also added a new json property emoji to capture the emoji of the status as well as add the custom status a new enum to ActivityType.

Changes proposed

  • Added the emoji property to TransportActivity.
  • Added custom as a new activity type in ActivityType.
  • Added the DiscordCustomStatus class, with name and emoji properties as well as an update method.
  • Modified the DiscordActivity.UpdateWith() method to properly update the custom status property.
  • Minor grammar corrections.

Notes

Bots are not able to implement this as of now.

Merge request reports

Loading