misc(moderation): minor docstring change
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 55s

This commit is contained in:
Seaswimmer 2023-10-22 19:29:51 -04:00
parent 167382a25a
commit f2e9657eff
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -178,7 +178,7 @@ class Moderation(commands.Cog):
return not_found_list return not_found_list
def check_permissions(self, user: discord.User, permissions: list, ctx: Union[commands.Context, discord.Interaction] = None, guild: discord.Guild = None): 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: if ctx:
member = ctx.guild.get_member(user.id) member = ctx.guild.get_member(user.id)
resolved_permissions = ctx.channel.permissions_for(member) resolved_permissions = ctx.channel.permissions_for(member)