forked from blizzthewolf/SeaCogs
fix(aurora): fixed resetting pagesize
This commit is contained in:
parent
56857554e9
commit
d20cb4c3bc
1 changed files with 8 additions and 2 deletions
|
@ -61,6 +61,9 @@ class Overrides(ui.View):
|
|||
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True)
|
||||
return
|
||||
await interaction.response.defer()
|
||||
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))
|
||||
|
||||
|
@ -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()
|
||||
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))
|
||||
|
|
Loading…
Reference in a new issue