mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add raw presence update evemt
This commit is contained in:
1 parent
afbbc07e98
commit
418a7915e6
10 files changed
+262
-86
No files matched your search
@@ -1532,3 +1532,11 @@ def _format_call_duration(duration: datetime.timedelta) -> str:
|
||||
formatted = f"{years} years"
|
||||
|
||||
return formatted
|
||||
|
||||
|
||||
class _RawReprMixin:
|
||||
__slots__: Tuple[str, ...] = ()
|
||||
|
||||
def __repr__(self) -> str:
|
||||
value = ' '.join(f'{attr}={getattr(self, attr)!r}' for attr in self.__slots__)
|
||||
return f'<{self.__class__.__name__} {value}>'
|
||||
Reference in new issue
Block a user