Skip to content

Commit 8d29300

Browse files
committed
Add anonymous command
1 parent aef0c1a commit 8d29300

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

cogs/modmail.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ async def logs(self, ctx, *, member: Union[discord.Member, discord.User, obj]=No
367367
await session.run()
368368

369369
@commands.command()
370-
@trigger_typing
371370
async def reply(self, ctx, *, msg=''):
372371
"""Reply to users using this command.
373372
@@ -376,15 +375,25 @@ async def reply(self, ctx, *, msg=''):
376375
ctx.message.content = msg
377376
thread = await self.bot.threads.find(channel=ctx.channel)
378377
if thread:
378+
await ctx.trigger_typing()
379379
await thread.reply(ctx.message)
380380

381381
@commands.command()
382-
@trigger_typing
382+
async def anonreply(self, ctx, *, msg=''):
383+
ctx.message.content = msg
384+
thread = await self.bot.threads.find(channel=ctx.channel)
385+
if thread:
386+
await ctx.trigger_typing()
387+
await thread.reply(ctx.message, anonymous=True)
388+
389+
@commands.command()
383390
async def note(self, ctx, *, msg=''):
384391
"""Take a note about the current thread, useful for noting context."""
385392
ctx.message.content = msg
386393
thread = await self.bot.threads.find(channel=ctx.channel)
394+
387395
if thread:
396+
await ctx.trigger_typing()
388397
await thread.note(ctx.message)
389398

390399
@commands.command()

0 commit comments

Comments
 (0)