From 605bb3f41687bd3638a21ecca3a39d9c6c6ae605 Mon Sep 17 00:00:00 2001 From: Raiden Sakura Date: Tue, 2 Apr 2024 21:54:58 +0800 Subject: [PATCH] Fix #3311 --- cogs/modmail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/modmail.py b/cogs/modmail.py index 48fa89ab00..433f2bde6e 100644 --- a/cogs/modmail.py +++ b/cogs/modmail.py @@ -779,7 +779,7 @@ async def title(self, ctx, *, name: str): @checks.has_permissions(PermissionLevel.SUPPORTER) @checks.thread_only() @commands.cooldown(1, 600, BucketType.channel) - async def adduser(self, ctx, *users_arg: Union[discord.Member, discord.Role, str]): + async def adduser(self, ctx, *users_arg: Union[discord.User, discord.Role, str]): """Adds a user to a modmail thread `options` can be `silent` or `silently`. @@ -792,7 +792,7 @@ async def adduser(self, ctx, *users_arg: Union[discord.Member, discord.Role, str silent = True elif isinstance(u, discord.Role): users += u.members - elif isinstance(u, discord.Member): + elif isinstance(u, discord.User): users.append(u) for u in users: