forked from blizzthewolf/SeaCogs
fix(aurora): pylint fixes
This commit is contained in:
parent
fc86db94da
commit
3b8506cba8
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
from discord import Embed, Guild
|
from discord import Embed
|
||||||
from redbot.core import commands
|
from redbot.core import commands
|
||||||
from redbot.core.utils.chat_formatting import bold, error, warning
|
from redbot.core.utils.chat_formatting import bold, error, warning
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ class Addrole(ui.View):
|
||||||
await interaction.message.edit(embed=await addrole(self.ctx))
|
await interaction.message.edit(embed=await addrole(self.ctx))
|
||||||
|
|
||||||
@ui.button(label="Clear", style=ButtonStyle.red, row=1)
|
@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:
|
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)
|
await interaction.response.send_message(error("You must have the manage guild permission to clear the guild's addrole whitelist."), ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
|
@ -26,7 +26,7 @@ class Immune(ui.View):
|
||||||
await interaction.message.edit(embed=await immune(self.ctx))
|
await interaction.message.edit(embed=await immune(self.ctx))
|
||||||
|
|
||||||
@ui.button(label="Clear", style=ButtonStyle.red, row=1)
|
@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:
|
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)
|
await interaction.response.send_message(error("You must have the manage guild permission to clear the guild's immune roles."), ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue