oops lol
This commit is contained in:
parent
9c8f143de4
commit
7aa4b29118
1 changed files with 3 additions and 3 deletions
|
@ -73,13 +73,13 @@ class Pterodactyl(commands.Cog):
|
|||
async def on_submit(self, interaction: discord.Interaction):
|
||||
message = ""
|
||||
if self.base_url.value != "":
|
||||
self.config.guild(interaction.guild).base_url.set(self.base_url)
|
||||
self.config.guild(interaction.guild).base_url.set(self.base_url.value)
|
||||
message += f"Base URL set to `{self.base_url.value}`.\n"
|
||||
if self.api_key.value != "":
|
||||
self.config.guild(interaction.guild).api_key.set(self.api_key)
|
||||
self.config.guild(interaction.guild).api_key.set(self.api_key.value)
|
||||
message += f"API Key set to `{self.api_key.value}`.\n"
|
||||
if self.server_id.value != "":
|
||||
self.config.guild(interaction.guild).server_id.set(self.server_id)
|
||||
self.config.guild(interaction.guild).server_id.set(self.server_id.value)
|
||||
message += f"Server ID set to `{self.server_id.value}`.\n"
|
||||
if message == "":
|
||||
message = f"No changes were made.\nCurrent configuration:\n- Base URL: `{self.config.guild(interaction.guild).base_url()}`\n- API Key: `{self.config.guild(interaction.guild).api_key()}`\n- Server ID: `{self.config.guild(interaction.guild).server_id()}`"
|
||||
|
|
Reference in a new issue