diff --git a/aurora/configuration/menus/overrides.py b/aurora/configuration/menus/overrides.py index 941bb94..fbb9bb1 100644 --- a/aurora/configuration/menus/overrides.py +++ b/aurora/configuration/menus/overrides.py @@ -61,7 +61,10 @@ class Overrides(ui.View): await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True) return await interaction.response.defer() - await config.user(self.ctx.author).history_inline_pagesize.set(int(select.values[0])) + if select.values[0] == "default": + await config.user(self.ctx.author).history_inline_pagesize.clear() + else: + await config.user(self.ctx.author).history_inline_pagesize.set(int(select.values[0])) await interaction.message.edit(embed=await embed(self.ctx)) @ui.select(placeholder="Pagesize", options=create_pagesize_options(), row=2) @@ -70,5 +73,8 @@ class Overrides(ui.View): await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True) return await interaction.response.defer() - await config.user(self.ctx.author).history_pagesize.set(int(select.values[0])) + if select.values[0] == "default": + await config.user(self.ctx.author).history_pagesize.clear() + else: + await config.user(self.ctx.author).history_pagesize.set(int(select.values[0])) await interaction.message.edit(embed=await embed(self.ctx))