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 4795fac5ac - Show all commits

View file

@ -19,7 +19,7 @@ class Overrides(ui.View):
current_setting = await config.user(self.ctx.author).auto_evidenceformat() current_setting = await config.user(self.ctx.author).auto_evidenceformat()
if current_setting is False: if current_setting is False:
await config.user(self.ctx.author).auto_evidenceformat.clear() await config.user(self.ctx.author).auto_evidenceformat.clear()
if current_setting is None: elif current_setting is None:
await config.user(self.ctx.author).auto_evidenceformat.set(True) await config.user(self.ctx.author).auto_evidenceformat.set(True)
else: else:
await config.user(self.ctx.author).auto_evidenceformat.set(False) await config.user(self.ctx.author).auto_evidenceformat.set(False)
@ -34,7 +34,7 @@ class Overrides(ui.View):
current_setting = await config.user(self.ctx.author).history_ephemeral() current_setting = await config.user(self.ctx.author).history_ephemeral()
if current_setting is False: if current_setting is False:
await config.user(self.ctx.author).history_ephemeral.clear() await config.user(self.ctx.author).history_ephemeral.clear()
if current_setting is None: elif current_setting is None:
await config.user(self.ctx.author).history_ephemeral.set(True) await config.user(self.ctx.author).history_ephemeral.set(True)
else: else:
await config.user(self.ctx.author).history_ephemeral.set(False) await config.user(self.ctx.author).history_ephemeral.set(False)
@ -49,7 +49,7 @@ class Overrides(ui.View):
current_setting = await config.user(self.ctx.author).history_inline() current_setting = await config.user(self.ctx.author).history_inline()
if current_setting is False: if current_setting is False:
await config.user(self.ctx.author).history_inline.clear() await config.user(self.ctx.author).history_inline.clear()
if current_setting is None: elif current_setting is None:
await config.user(self.ctx.author).history_inline.set(True) await config.user(self.ctx.author).history_inline.set(True)
else: else:
await config.user(self.ctx.author).history_inline.set(False) await config.user(self.ctx.author).history_inline.set(False)