Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ban_appeals/ban_appeals.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ async def on_member_remove(self, member: discord.Member) -> None:
await thread.channel.send(embed=embed)


def setup(bot: ModmailBot) -> None:
async def setup(bot: ModmailBot) -> None:
"""Add the BanAppeals cog."""
bot.add_cog(BanAppeals(bot))
await bot.add_cog(BanAppeals(bot))
4 changes: 2 additions & 2 deletions close_message/close_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ async def message(self, ctx: commands.Context) -> None:
await ctx.send(f'> {DEFAULT_CLOSE_MESSAGE}')


def setup(bot: ModmailBot) -> None:
async def setup(bot: ModmailBot) -> None:
"""Load the CloseMessage plugin."""
bot.add_cog(CloseMessage(bot))
await bot.add_cog(CloseMessage(bot))
4 changes: 2 additions & 2 deletions mdlink/mdlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ async def mdlink(self, ctx: commands.Context, *, text: str = "ModMail") -> None:
await ctx.send(f"`[{text}]({link})`")


def setup(bot: ModmailBot) -> None:
async def setup(bot: ModmailBot) -> None:
"""Add the MDLink plugin."""
bot.add_cog(MDLink(bot))
await bot.add_cog(MDLink(bot))
4 changes: 2 additions & 2 deletions ping_manager/ping_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,6 @@ async def on_thread_ready(self, thread: Thread, *args) -> None:
await self.add_ping_task(ping_task)


def setup(bot: ModmailBot) -> None:
async def setup(bot: ModmailBot) -> None:
"""Add the PingManager plugin."""
bot.add_cog(PingManager(bot))
await bot.add_cog(PingManager(bot))
2 changes: 1 addition & 1 deletion reply_cooldown/reply_cooldown.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
COOLDOWN_TIME = 10


def setup(bot: ModmailBot) -> None:
async def setup(bot: ModmailBot) -> None:
"""Monkey patch the built-in reply function to add a cooldown between uses."""
_reply = Thread.reply

Expand Down
4 changes: 2 additions & 2 deletions tagging/tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ async def tag(self, ctx: commands.Context, *, tag: Optional[str]) -> None:
await ctx.message.add_reaction("\u2705")


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