Skip to content

Commit d41ac75

Browse files
committed
Update reply plugin to match new function signature
1 parent 4e833bd commit d41ac75

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reply_cooldown/reply_cooldown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async def setup(bot: ModmailBot) -> None:
2020
"""Monkey patch the built-in reply function to add a cooldown between uses."""
2121
_reply = Thread.reply
2222

23-
async def reply(self: commands.Cog, message: discord.Message, anonymous: bool = False, plain: bool = False) -> None:
23+
async def reply(self: commands.Cog, message: discord.Message, content: str = None, anonymous: bool = False, plain: bool = False) -> None:
2424
"""The new reply function with a cooldown between uses."""
2525
# Bypass the cooldown if the message has attachments.
2626
if not message.attachments:
@@ -34,6 +34,6 @@ async def reply(self: commands.Cog, message: discord.Message, anonymous: bool =
3434
return
3535

3636
MESSAGES_BUFFER.append((message.channel.id, message.content, time.time()))
37-
await _reply(self, message, anonymous, plain)
37+
await _reply(self, message, content, anonymous, plain)
3838

3939
Thread.reply = reply

0 commit comments

Comments
 (0)