aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-05-06 14:45:29 +0100
committerGravatar Chris <[email protected]>2021-05-06 14:45:29 +0100
commitdf65a5091100a59424bedc14144f37c43954d0b3 (patch)
tree87311026ecf5f8e071303b9ecf69a2f1a0d702cb
parentOnly use WrappedMessageConverter in the actual command signature (diff)
Use bot.bot.Bot for type hint, over commands.Bot
-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 f0b828f8..5f550a4a 100644
--- a/bot/exts/evergreen/bookmark.py
+++ b/bot/exts/evergreen/bookmark.py
@@ -5,6 +5,7 @@ import random
import discord
from discord.ext import commands
+from bot.bot import Bot
from bot.constants import Colours, ERROR_REPLIES, Icons
from bot.utils.converters import WrappedMessageConverter
@@ -18,7 +19,7 @@ BOOKMARK_EMOJI = "📌"
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
@staticmethod
@@ -140,6 +141,6 @@ class Bookmark(commands.Cog):
await reaction_message.delete()
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Bookmark cog."""
bot.add_cog(Bookmark(bot))