misc(moderation): minor docstring change
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 55s
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 55s
This commit is contained in:
parent
167382a25a
commit
f2e9657eff
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class Moderation(commands.Cog):
|
|||
return not_found_list
|
||||
|
||||
def check_permissions(self, user: discord.User, permissions: list, ctx: Union[commands.Context, discord.Interaction] = None, guild: discord.Guild = None):
|
||||
"""Checks if the bot has a specific permission (or a list of permissions) in a channel."""
|
||||
"""Checks if a user has a specific permission (or a list of permissions) in a channel."""
|
||||
if ctx:
|
||||
member = ctx.guild.get_member(user.id)
|
||||
resolved_permissions = ctx.channel.permissions_for(member)
|
||||
|
|
Loading…
Reference in a new issue