mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 10:22:59 +00:00
Add raw presence update evemt
This commit is contained in:
@ -25,10 +25,10 @@ DEALINGS IN THE SOFTWARE.
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
from typing import TYPE_CHECKING, Literal, Optional, Set, List, Tuple, Union
|
||||
from typing import TYPE_CHECKING, Literal, Optional, Set, List, Union
|
||||
|
||||
from .enums import ChannelType, try_enum, ReactionType
|
||||
from .utils import _get_as_snowflake
|
||||
from .utils import _get_as_snowflake, _RawReprMixin
|
||||
from .app_commands import AppCommandPermissions
|
||||
from .colour import Colour
|
||||
|
||||
@ -82,14 +82,6 @@ __all__ = (
|
||||
)
|
||||
|
||||
|
||||
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}>'
|
||||
|
||||
|
||||
class RawMessageDeleteEvent(_RawReprMixin):
|
||||
"""Represents the event payload for a :func:`on_raw_message_delete` event.
|
||||
|
||||
|
Reference in New Issue
Block a user