fix(issues): config values now set themselves properly
This commit is contained in:
parent
d4203cad9c
commit
c65c00f5ff
1 changed files with 4 additions and 4 deletions
|
@ -183,13 +183,13 @@ class Issues(commands.Cog):
|
||||||
)
|
)
|
||||||
|
|
||||||
async def on_submit(self, interaction: discord.Interaction):
|
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)
|
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)
|
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)
|
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 self.config.gitea_repository.set(self.gitea_repository.value)
|
||||||
await interaction.response.send_message(content="Configuration changed!")
|
await interaction.response.send_message(content="Configuration changed!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue