mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix typing errors with Client
This commit is contained in:
1 parent
074f34a5fa
commit
750ba88f2c
3 files changed
+31
-17
No files matched your search
@@ -133,6 +133,9 @@ class BaseActivity:
|
||||
if self._created_at is not None:
|
||||
return datetime.datetime.utcfromtimestamp(self._created_at / 1000).replace(tzinfo=datetime.timezone.utc)
|
||||
|
||||
def to_dict(self) -> ActivityPayload:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class Activity(BaseActivity):
|
||||
"""Represents an activity in Discord.
|
||||
|
||||
Reference in new issue
Block a user