Skip to content

Implemented new DiscordMessage properties

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

Created by: Neuheit

Summary

Implemented support for several new DiscordMessage properties in addition to creating/moving a few files. This addresses issue #436 (closed).

Details

I added reference to the new activity, application, and message_reference properties sent. These objects were also each given their own class and properties.

I also added 5 new message types, that involve messages sent with nitro boosting and news channel updates to the MessageType enum, and moved the enum from the DiscordMessage class to it's own separate file inside of the Enums folder.

Changes proposed

  • Added 3 new properties to the DiscordMessage class.
  • Each of these properties were given their own class, for support with their properties.
  • Added 5 new message types
  • Moved the MessageTypes enum into the Enums folder.

Note

In terms of the Author property not being handled properly, I didn't find it necessary to change because there is a property to check whether the message is a webhook or not.

Merge request reports

Loading