Aurora Configuration Rewrite #15

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

View file

@ -33,7 +33,7 @@ class Addrole(ui.View):
await config.guild(self.ctx.guild).addrole_whitelist.clear() await config.guild(self.ctx.guild).addrole_whitelist.clear()
await interaction.message.edit(embed=await addrole(self.ctx)) await interaction.message.edit(embed=await addrole(self.ctx))
@ui.button(label="Close", style=ButtonStyle.red) @ui.button(label="Close", style=ButtonStyle.gray)
async def close(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument async def close(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 can't do that!"), ephemeral=True) await interaction.response.send_message(error("You can't do that!"), ephemeral=True)

View file

@ -34,7 +34,7 @@ class Immune(ui.View):
await config.guild(self.ctx.guild).immune_roles.clear() await config.guild(self.ctx.guild).immune_roles.clear()
await interaction.message.edit(embed=await immune(self.ctx)) await interaction.message.edit(embed=await immune(self.ctx))
@ui.button(label="Close", style=ButtonStyle.red) @ui.button(label="Close", style=ButtonStyle.gray)
async def close(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument async def close(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 can't do that!"), ephemeral=True) await interaction.response.send_message(error("You can't do that!"), ephemeral=True)