Skip to content

Commit 7fc2198

Browse files
authored
Changed slightly fine.
1 parent e97c8a5 commit 7fc2198

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,11 @@ async def on_message(self, message):
260260
await self.process_modmail(message)
261261

262262
@commands.command()
263-
async def reply(self, ctx):
263+
async def reply(self, ctx, *, msg):
264264
categ = discord.utils.get(ctx.message.guild.categories, id=ctx.message.channel.category_id)
265265
if categ is not None:
266266
if categ.name == 'modmail':
267+
ctx.message.content = msg
267268
await self.process_reply(ctx.message)
268269

269270
if __name__ == '__main__':

0 commit comments

Comments
 (0)