fix(aurora): fix boolean conversion in override menu
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 14s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s

This commit is contained in:
Seaswimmer 2024-01-16 10:42:12 +00:00
parent 219b18e34b
commit c0ab9e89f3
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -22,7 +22,7 @@ class Overrides(ui.View):
if select.values[0] == 'None':
await config.user(self.ctx.author).auto_evidenceformat.clear()
else:
await config.user(self.ctx.author).auto_evidenceformat.set(bool(select.values[0]))
await config.user(self.ctx.author).auto_evidenceformat.set(bool(int(select.values[0])))
await interaction.message.edit(embed=await embed(self.ctx))
@ui.select(cls=ui.Select, placeholder="Epheremal", row=1, options=[
@ -38,7 +38,7 @@ class Overrides(ui.View):
if select.values[0] == 'None':
await config.user(self.ctx.author).history_ephemeral.clear()
else:
await config.user(self.ctx.author).history_ephemeral.set(bool(select.values[0]))
await config.user(self.ctx.author).history_ephemeral.set(bool(int(select.values[0])))
await interaction.message.edit(embed=await embed(self.ctx))
@ui.select(cls=ui.Select, placeholder="Inline", row=2, options=[
@ -54,5 +54,5 @@ class Overrides(ui.View):
if select.values[0] == 'None':
await config.user(self.ctx.author).history_inline.clear()
else:
await config.user(self.ctx.author).history_inline.set(bool(select.values[0]))
await config.user(self.ctx.author).history_inline.set(bool(int(select.values[0])))
await interaction.message.edit(embed=await embed(self.ctx))