It fixes the issue of people not being able to see their rpc, if they haven't set their buttons in the Activity() class. Discord doesn't seem to show the presence if a empty list of buttons is sent, so I made the default a None instead of a list.
I also gave the Activity() class access to metadata, so people could configure button urls. The implementation is basic and ignoring the Metadata() class. It could be improved.
General Info
[x ] If code changes were made then they have been tested.
[ ] I have updated the documentation to reflect the changes.
[ ] This PR fixes an issue (please put issue # in summary).
[x ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)
Summary
It fixes the issue of people not being able to see their rpc, if they haven't set their buttons in the Activity() class. Discord doesn't seem to show the presence if a empty list of buttons is sent, so I made the default a None instead of a list.
I also gave the Activity() class access to metadata, so people could configure button urls. The implementation is basic and ignoring the Metadata() class. It could be improved.
General Info