fix(moderation): kwarg ordering
All checks were successful
Pylint / Pylint (3.10) (push) Successful in 54s

This commit is contained in:
Seaswimmer 2023-10-22 14:11:16 -04:00
parent 24d756b901
commit 4f513a44a9
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)