From 90796054965b4ed44fce636c7b64181958357574 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 24 Mar 2022 07:43:57 +0000 Subject: Remove unneeded kwargs in BotBase Since *args and **kwargs already allow these to be passed, there is no use in explicitly listing them. allowed_roles has been left there, to ensure that it is always passed, since it's important to use this to avoid bots being able to ping large roles. --- botcore/_bot.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'botcore/_bot.py') diff --git a/botcore/_bot.py b/botcore/_bot.py index 28f5a1a2..f334631c 100644 --- a/botcore/_bot.py +++ b/botcore/_bot.py @@ -33,9 +33,7 @@ class BotBase(commands.Bot): self, *args, guild_id: int, - prefix: str, allowed_roles: list, - intents: discord.Intents, http_session: aiohttp.ClientSession, redis_session: Optional[RedisSession] = None, **kwargs, @@ -45,9 +43,7 @@ class BotBase(commands.Bot): Args: guild_id: The ID of the guild use for :func:`wait_until_guild_available`. - prefix: The prefix to use for the bot. allowed_roles: A list of role IDs that the bot is allowed to mention. - intents: The :obj:`discord.Intents` to use for the bot. http_session (aiohttp.ClientSession): The session to use for the bot. redis_session: The ``[async_rediscache.RedisSession](https://github.com/SebastiaanZ/async-rediscache#creating-a-redissession)`` @@ -55,9 +51,7 @@ class BotBase(commands.Bot): """ super().__init__( *args, - prefix=prefix, allowed_roles=allowed_roles, - intents=intents, **kwargs, ) -- cgit v1.2.3