diff options
author | 2021-04-19 20:20:48 +0100 | |
---|---|---|
committer | 2021-04-19 20:20:48 +0100 | |
commit | 1ed857d9093481387720ac1dc4041a64a2c9c593 (patch) | |
tree | 909724207ba5493db3f0871a74efa1198d34fc59 /bot/exts/evergreen/source.py | |
parent | Merge pull request #673 from janine9vn/int-eval (diff) |
chore: switch commands.Bot typehints to bot.bot's Bot
Diffstat (limited to 'bot/exts/evergreen/source.py')
-rw-r--r-- | bot/exts/evergreen/source.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/source.py b/bot/exts/evergreen/source.py index 45752bf9..3e6031a5 100644 --- a/bot/exts/evergreen/source.py +++ b/bot/exts/evergreen/source.py @@ -5,6 +5,7 @@ from typing import Optional, Tuple, Union from discord import Embed from discord.ext import commands +from bot.bot import Bot from bot.constants import Source SourceType = Union[commands.Command, commands.Cog, str, commands.ExtensionNotLoaded] @@ -31,7 +32,7 @@ class SourceConverter(commands.Converter): class BotSource(commands.Cog): """Displays information about the bot's source code.""" - def __init__(self, bot: commands.Bot): + def __init__(self, bot: Bot): self.bot = bot @commands.command(name="source", aliases=("src",)) @@ -104,6 +105,6 @@ class BotSource(commands.Cog): return embed -def setup(bot: commands.Bot) -> None: +def setup(bot: Bot) -> None: """Load the BotSource cog.""" bot.add_cog(BotSource(bot)) |