This commit is contained in:
Seaswimmer 2023-07-15 13:22:51 -04:00
parent 9f8fd0c376
commit 498b38c019
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -207,7 +207,7 @@ class Pterodactyl(commands.Cog):
await self.config.guild(interaction.guild).server_id.set(self.server_id.value)
message += f"- Server ID set to\n - `{self.server_id.value}`\n"
if message == "":
trimmed_api_key = str(await self.config.guild(interaction.guild).api_key())[:16] + "`..."
trimmed_api_key = str(await self.config.guild(interaction.guild).api_key())[:16]
send = f"No changes were made.\nCurrent configuration:\n- Base URL:\n - `{await self.config.guild(interaction.guild).base_url()}`\n- API Key:\n - `{trimmed_api_key}` - Trimmed for security\n- Server ID:\n - `{await self.config.guild(interaction.guild).server_id()}`"
else:
send = f"Configuration changed:\n{message}"