aboutsummaryrefslogtreecommitdiffstats
path: root/botcore
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-03-24 07:43:57 +0000
committerGravatar Chris Lovering <[email protected]>2022-03-24 08:25:27 +0000
commit90796054965b4ed44fce636c7b64181958357574 (patch)
treeb3f476eb1193332f42e27027b384464982dabb5b /botcore
parentAdd BotBase that will act as a base for all our bots (diff)
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.
Diffstat (limited to 'botcore')
-rw-r--r--botcore/_bot.py6
1 files changed, 0 insertions, 6 deletions
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,
)