From c0ab9e89f3a9d799f9a700aa0e1796fcde4317f7 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 16 Jan 2024 10:42:12 +0000 Subject: [PATCH] fix(aurora): fix boolean conversion in override menu --- aurora/configuration/menus/overrides.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aurora/configuration/menus/overrides.py b/aurora/configuration/menus/overrides.py index 810db4c..aa39d2c 100644 --- a/aurora/configuration/menus/overrides.py +++ b/aurora/configuration/menus/overrides.py @@ -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))