dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
648 stars 153 forks source link

Allow people to send metadata with activity and fix a bug #649

Closed MrStretchd closed 5 months ago

MrStretchd commented 5 months ago

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