fix(aurora): fixed incorrect decorator

This commit is contained in:
Seaswimmer 2024-01-16 10:58:33 +00:00
parent c55cb53a41
commit fe50eddc25
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -77,7 +77,7 @@ class Overrides(ui.View):
await interaction.message.edit(embed=await embed(self.ctx)) await interaction.message.edit(embed=await embed(self.ctx))
@ui.select(placeholder="Inline Pagesize", options=create_pagesize_options(), row=1) @ui.select(placeholder="Inline Pagesize", options=create_pagesize_options(), row=1)
async def inline_pagesize(self, select: ui.Select, interaction: Interaction): # pylint: disable=unused-argument async def inline_pagesize(self, interaction: Interaction, select: ui.Select,): # 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)
return return
@ -94,8 +94,8 @@ class Overrides(ui.View):
await config.user(self.ctx.author).history_inline_pagesize.clear() await config.user(self.ctx.author).history_inline_pagesize.clear()
await interaction.message.edit(embed=await embed(self.ctx)) await interaction.message.edit(embed=await embed(self.ctx))
@ui.button(label="Pagesize", options=create_pagesize_options(), row=2) @ui.select(label="Pagesize", options=create_pagesize_options(), row=2)
async def pagesize(self, select: ui.Select, interaction: Interaction): # pylint: disable=unused-argument async def pagesize(self, interaction: Interaction, select: ui.Select,): # 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)
return return