Skip to content

Commit 1e72afd

Browse files
committed
Update modmail.py
1 parent 2383acb commit 1e72afd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async def block(self, ctx, id=None):
325325
if id is None:
326326
thread = await self.bot.threads.find(channel=ctx.channel)
327327
if thread:
328-
id = thread.recipient.id
328+
id = str(thread.recipient.id)
329329
else:
330330
raise commands.UserInputError
331331

@@ -362,7 +362,7 @@ async def unblock(self, ctx, id=None):
362362
if id is None:
363363
thread = await self.bot.threads.find(channel=ctx.channel)
364364
if thread:
365-
id = thread.recipient.id
365+
id = str(thread.recipient.id)
366366
else:
367367
raise commands.UserInputError
368368

0 commit comments

Comments
 (0)