fix(aurora): pylint fixes

This commit is contained in:
Seaswimmer 2024-01-16 14:08:57 +00:00
parent fc86db94da
commit 3b8506cba8
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
from discord import Embed, Guild
from discord import Embed
from redbot.core import commands
from redbot.core.utils.chat_formatting import bold, error, warning

View file

@ -25,7 +25,7 @@ class Addrole(ui.View):
await interaction.message.edit(embed=await addrole(self.ctx))
@ui.button(label="Clear", style=ButtonStyle.red, row=1)
async def clear(self, interaction: Interaction, button: ui.Button):
async def clear(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator:
await interaction.response.send_message(error("You must have the manage guild permission to clear the guild's addrole whitelist."), ephemeral=True)
return

View file

@ -26,7 +26,7 @@ class Immune(ui.View):
await interaction.message.edit(embed=await immune(self.ctx))
@ui.button(label="Clear", style=ButtonStyle.red, row=1)
async def clear(self, interaction: Interaction, button: ui.Button):
async def clear(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator:
await interaction.response.send_message(error("You must have the manage guild permission to clear the guild's immune roles."), ephemeral=True)
return