forked from cswimr/SeaCogs
fix(aurora): fixed width error
This commit is contained in:
parent
6d7b551f25
commit
045af7788b
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ class Overrides(ui.View):
|
||||||
await config.user(self.ctx.author).history_inline_pagesize.set(int(select.values[0]))
|
await config.user(self.ctx.author).history_inline_pagesize.set(int(select.values[0]))
|
||||||
await interaction.message.edit(embed=await embed(self.ctx))
|
await interaction.message.edit(embed=await embed(self.ctx))
|
||||||
|
|
||||||
@ui.button(label="X", style=ButtonStyle.red, row=2)
|
@ui.button(label="Reset Inline Pagesize", style=ButtonStyle.red, row=4)
|
||||||
async def inline_pagesize_reset(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
async def inline_pagesize_reset(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||||
if self.ctx.author != interaction.user:
|
if self.ctx.author != interaction.user:
|
||||||
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True)
|
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True)
|
||||||
|
@ -103,7 +103,7 @@ class Overrides(ui.View):
|
||||||
await config.user(self.ctx.author).history_pagesize.set(int(select.values[0]))
|
await config.user(self.ctx.author).history_pagesize.set(int(select.values[0]))
|
||||||
await interaction.message.edit(embed=await embed(self.ctx))
|
await interaction.message.edit(embed=await embed(self.ctx))
|
||||||
|
|
||||||
@ui.button(label="X", style=ButtonStyle.red, row=3)
|
@ui.button(label="Reset Pagesize", style=ButtonStyle.red, row=4)
|
||||||
async def pagesize_reset(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
async def pagesize_reset(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
|
||||||
if self.ctx.author != interaction.user:
|
if self.ctx.author != interaction.user:
|
||||||
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True)
|
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True)
|
||||||
|
|
Loading…
Reference in a new issue