fix(moderation): kwarg ordering
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 54s
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 54s
This commit is contained in:
parent
24d756b901
commit
4f513a44a9
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ class Moderation(commands.Cog):
|
|||
not_found_list.append(item)
|
||||
return not_found_list
|
||||
|
||||
def check_permissions(self, user: discord.User, permissions: list, guild: discord.Guild = None, ctx: Union[commands.Context, discord.Interaction] = 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."""
|
||||
if ctx:
|
||||
member = ctx.guild.get_member(user.id)
|
||||
|
|
Loading…
Reference in a new issue