mirror of
https://github.com/stoatchat/python-client-sdk.git
synced 2026-07-25 00:15:23 -04:00
fix slots issue
This commit is contained in:
+1
-1
@@ -15,4 +15,4 @@ from .role import Role
|
||||
from .server import Server
|
||||
from .user import Relation, Status, User
|
||||
|
||||
__version__ = (0, 1, 0)
|
||||
__version__ = (0, 1, 1)
|
||||
|
||||
@@ -40,7 +40,6 @@ class Client:
|
||||
max_messages: :class:`int`
|
||||
The max amount of messages stored in the cache, by default this is 5k
|
||||
"""
|
||||
__slots__ = ("session", "token", "api_url", "max_messages", "api_info", "http", "state", "websocket", "listeners")
|
||||
|
||||
def __init__(self, session: aiohttp.ClientSession, token: str, api_url: str = "https://api.revolt.chat", max_messages: int = 5000):
|
||||
self.session = session
|
||||
|
||||
@@ -34,8 +34,6 @@ class CommandsMeta(type):
|
||||
class CommandsMixin(metaclass=CommandsMeta):
|
||||
"""Main class that adds commands, this class should be subclassed along with `revolt.Client`."""
|
||||
|
||||
__slots__ = ("_commands", "all_commands")
|
||||
|
||||
_commands: list[Command]
|
||||
dispatch: Callable[..., None]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user