forked from cswimr/SeaCogs
fix(aurora): fix boolean conversion in override menu
This commit is contained in:
parent
219b18e34b
commit
c0ab9e89f3
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ class Overrides(ui.View):
|
||||||
if select.values[0] == 'None':
|
if select.values[0] == 'None':
|
||||||
await config.user(self.ctx.author).auto_evidenceformat.clear()
|
await config.user(self.ctx.author).auto_evidenceformat.clear()
|
||||||
else:
|
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))
|
await interaction.message.edit(embed=await embed(self.ctx))
|
||||||
|
|
||||||
@ui.select(cls=ui.Select, placeholder="Epheremal", row=1, options=[
|
@ui.select(cls=ui.Select, placeholder="Epheremal", row=1, options=[
|
||||||
|
@ -38,7 +38,7 @@ class Overrides(ui.View):
|
||||||
if select.values[0] == 'None':
|
if select.values[0] == 'None':
|
||||||
await config.user(self.ctx.author).history_ephemeral.clear()
|
await config.user(self.ctx.author).history_ephemeral.clear()
|
||||||
else:
|
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))
|
await interaction.message.edit(embed=await embed(self.ctx))
|
||||||
|
|
||||||
@ui.select(cls=ui.Select, placeholder="Inline", row=2, options=[
|
@ui.select(cls=ui.Select, placeholder="Inline", row=2, options=[
|
||||||
|
@ -54,5 +54,5 @@ class Overrides(ui.View):
|
||||||
if select.values[0] == 'None':
|
if select.values[0] == 'None':
|
||||||
await config.user(self.ctx.author).history_inline.clear()
|
await config.user(self.ctx.author).history_inline.clear()
|
||||||
else:
|
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))
|
await interaction.message.edit(embed=await embed(self.ctx))
|
||||||
|
|
Loading…
Reference in a new issue