Skip to content

Commit e429022

Browse files
authored
Make sure to await bot.add_cog
1 parent 8f26448 commit e429022

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

ban_appeals/ban_appeals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,4 @@ async def on_member_remove(self, member: discord.Member) -> None:
236236

237237
async def setup(bot: ModmailBot) -> None:
238238
"""Add the BanAppeals cog."""
239-
bot.add_cog(BanAppeals(bot))
239+
await bot.add_cog(BanAppeals(bot))

close_message/close_message.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ async def message(self, ctx: commands.Context) -> None:
107107

108108
async def setup(bot: ModmailBot) -> None:
109109
"""Load the CloseMessage plugin."""
110-
bot.add_cog(CloseMessage(bot))
110+
await bot.add_cog(CloseMessage(bot))

mdlink/mdlink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ async def mdlink(self, ctx: commands.Context, *, text: str = "ModMail") -> None:
2222

2323
async def setup(bot: ModmailBot) -> None:
2424
"""Add the MDLink plugin."""
25-
bot.add_cog(MDLink(bot))
25+
await bot.add_cog(MDLink(bot))

ping_manager/ping_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,4 @@ async def on_thread_ready(self, thread: Thread, *args) -> None:
300300

301301
async def setup(bot: ModmailBot) -> None:
302302
"""Add the PingManager plugin."""
303-
bot.add_cog(PingManager(bot))
303+
await bot.add_cog(PingManager(bot))

tagging/tagging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ async def tag(self, ctx: commands.Context, *, tag: Optional[str]) -> None:
3838

3939
async def setup(bot: ModmailBot) -> None:
4040
"""Add the Tagging plugin."""
41-
bot.add_cog(Tagging(bot))
41+
await bot.add_cog(Tagging(bot))

0 commit comments

Comments
 (0)