Compare commits
3 Commits
JDJGInc/pa
...
kuanhulio/
Author | SHA1 | Date | |
---|---|---|---|
e48493b36c | |||
4931100b44 | |||
ec1e2add21 |
@ -41,7 +41,9 @@ Key Features
|
||||
Installing
|
||||
----------
|
||||
|
||||
**Python 3.8 or higher is required**
|
||||
**Python 3.8 or higher is required***
|
||||
|
||||
***Do not use 3.9.7 as Python 3.9.7 has a bug that causes a TypeError with __init__ methods in subclasses.** View more `here <https://bugs.python.org/issue45121/>`_.
|
||||
|
||||
To install the library without full voice support, you can just run the following command:
|
||||
|
||||
|
@ -188,7 +188,7 @@ class HTTPClient:
|
||||
self.proxy_auth: Optional[aiohttp.BasicAuth] = proxy_auth
|
||||
self.use_clock: bool = not unsync_clock
|
||||
|
||||
user_agent = "DiscordBot (https://github.com/Rapptz/discord.py {0}) Python/{1[0]}.{1[1]} aiohttp/{2}"
|
||||
user_agent = "DiscordBot (https://github.com/iDevision/enhanced-discord.py {0}) Python/{1[0]}.{1[1]} aiohttp/{2}"
|
||||
self.user_agent: str = user_agent.format(__version__, sys.version_info, aiohttp.__version__)
|
||||
|
||||
def recreate(self) -> None:
|
||||
|
@ -94,18 +94,3 @@ class Object(Hashable):
|
||||
def created_at(self) -> datetime.datetime:
|
||||
""":class:`datetime.datetime`: Returns the snowflake's creation time in UTC."""
|
||||
return utils.snowflake_time(self.id)
|
||||
|
||||
@property
|
||||
def worker_id(self) -> int:
|
||||
""":class:`int`: Returns the worker id that made the snowflake."""
|
||||
return (self.id & 0x3E0000) >> 17
|
||||
|
||||
@property
|
||||
def process_id(self) -> int:
|
||||
""":class:`int`: Returns the process id that made the snowflake."""
|
||||
return (self.id & 0x1F000) >> 12
|
||||
|
||||
@property
|
||||
def increment_id(self) -> int:
|
||||
""":class:`int`: Returns the increment id that made the snowflake."""
|
||||
return (self.id & 0xFFF)
|
||||
|
Reference in New Issue
Block a user