Aurora Configuration Rewrite #15

Merged
cswimr merged 73 commits from aurora-config-rewrite into main 2024-01-16 12:19:08 -05:00
Showing only changes of commit c0ab9e89f3 - Show all commits

View file

@ -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))