From c65c00f5ff3e3e4ac9ef71e200aff6fce092e18c Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 20 Aug 2023 15:08:21 -0400 Subject: [PATCH] fix(issues): config values now set themselves properly --- issues/issues.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/issues/issues.py b/issues/issues.py index ddea316..deb992c 100644 --- a/issues/issues.py +++ b/issues/issues.py @@ -183,13 +183,13 @@ class Issues(commands.Cog): ) async def on_submit(self, interaction: discord.Interaction): - if self.gitea_token.value is not None: + if self.gitea_token.value != "": await self.config.gitea_token.set(self.gitea_token.value) - if self.gitea_root_url.value is not None: + if self.gitea_root_url.value != "": await self.config.gitea_root_url.set(self.gitea_root_url.value) - if self.gitea_repository_owner.value is not None: + if self.gitea_repository_owner.value != "": await self.config.gitea_repository_owner.set(self.gitea_repository_owner.value) - if self.gitea_repository.value is not None: + if self.gitea_repository.value != "": await self.config.gitea_repository.set(self.gitea_repository.value) await interaction.response.send_message(content="Configuration changed!")