fix(issues): config values now set themselves properly

This commit is contained in:
Seaswimmer 2023-08-20 15:08:21 -04:00
parent d4203cad9c
commit c65c00f5ff
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

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