aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/bookmark.py
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
committerGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
commit1ed857d9093481387720ac1dc4041a64a2c9c593 (patch)
tree909724207ba5493db3f0871a74efa1198d34fc59 /bot/exts/evergreen/bookmark.py
parentMerge pull request #673 from janine9vn/int-eval (diff)
chore: switch commands.Bot typehints to bot.bot's Bot
Diffstat (limited to 'bot/exts/evergreen/bookmark.py')
-rw-r--r--bot/exts/evergreen/bookmark.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/evergreen/bookmark.py
index 5fa05d2e..329838b9 100644
--- a/bot/exts/evergreen/bookmark.py
+++ b/bot/exts/evergreen/bookmark.py
@@ -4,6 +4,7 @@ import random
import discord
from discord.ext import commands
+from bot.bot import Bot
from bot.constants import Colours, ERROR_REPLIES, Emojis, Icons
from bot.utils.converters import WrappedMessageConverter
@@ -13,7 +14,7 @@ log = logging.getLogger(__name__)
class Bookmark(commands.Cog):
"""Creates personal bookmarks by relaying a message link to the user's DMs."""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@commands.command(name="bookmark", aliases=("bm", "pin"))
@@ -60,6 +61,6 @@ class Bookmark(commands.Cog):
await ctx.message.add_reaction(Emojis.envelope)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Bookmark cog."""
bot.add_cog(Bookmark(bot))