Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
raidensakura committed Apr 2, 2024
1 parent cfab16f commit 605bb3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand All @@ -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:
Expand Down

0 comments on commit 605bb3f

Please sign in to comment.