Aurora Configuration Rewrite #15

Merged
cswimr merged 73 commits from aurora-config-rewrite into main 2024-01-16 12:19:08 -05:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit 3b8506cba8 - Show all commits

View file

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

View file

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

View file

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