From fc86db94dae510f2c17d545aac3054835967bb42 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 16 Jan 2024 14:06:50 +0000 Subject: [PATCH] misc(aurora): moved log_channel to the bottom of the guild view --- aurora/configuration/menus/guild.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/aurora/configuration/menus/guild.py b/aurora/configuration/menus/guild.py index afaaf0e..fd1dfa0 100644 --- a/aurora/configuration/menus/guild.py +++ b/aurora/configuration/menus/guild.py @@ -90,16 +90,7 @@ class Guild(ui.View): await config.guild(interaction.guild).history_inline.set(not current_setting) await interaction.message.edit(embed=await guild(self.ctx)) - @ui.select(placeholder="Log Channel", cls=ui.ChannelSelect, row=2) - async def log_channel(self, interaction: Interaction, select: ui.ChannelSelect): - if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator: - await interaction.response.send_message("You must have the manage guild permission to change this setting.", ephemeral=True) - return - await interaction.response.defer() - await config.guild(interaction.guild).log_channel.set(select.values[0].id) - await interaction.message.edit(embed=await guild(self.ctx)) - - @ui.select(placeholder="History Pagesize", options=create_pagesize_options(), row=3) + @ui.select(placeholder="History Pagesize", options=create_pagesize_options(), row=2) async def pagesize(self, interaction: Interaction, select: ui.Select,): if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator: await interaction.response.send_message("You must have the manage guild permission to change this setting.", ephemeral=True) @@ -111,7 +102,7 @@ class Guild(ui.View): await interaction.response.defer() await interaction.message.edit(embed=await guild(self.ctx)) - @ui.select(placeholder="History Inline Pagesize", options=create_pagesize_options(), row=4) + @ui.select(placeholder="History Inline Pagesize", options=create_pagesize_options(), row=3) async def inline_pagesize(self, interaction: Interaction, select: ui.Select,): if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator: await interaction.response.send_message("You must have the manage guild permission to change this setting.", ephemeral=True) @@ -122,3 +113,12 @@ class Guild(ui.View): await config.guild(interaction.guild).history_inline_pagesize.set(int(select.values[0])) await interaction.response.defer() await interaction.message.edit(embed=await guild(self.ctx)) + + @ui.select(placeholder="Log Channel", cls=ui.ChannelSelect, row=4) + async def log_channel(self, interaction: Interaction, select: ui.ChannelSelect): + if not interaction.user.guild_permissions.manage_guild and not interaction.user.guild_permissions.administrator: + await interaction.response.send_message("You must have the manage guild permission to change this setting.", ephemeral=True) + return + await interaction.response.defer() + await config.guild(interaction.guild).log_channel.set(select.values[0].id) + await interaction.message.edit(embed=await guild(self.ctx))