mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 08:23:09 +00:00
Add raw presence update evemt
This commit is contained in:
@@ -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