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!")