visual changes
This commit is contained in:
parent
e74d596fe3
commit
9186b42837
1 changed files with 4 additions and 4 deletions
|
@ -201,14 +201,14 @@ class Pterodactyl(commands.Cog):
|
||||||
message += f"- Base URL set to `{self.base_url.value}`\n"
|
message += f"- Base URL set to `{self.base_url.value}`\n"
|
||||||
if self.api_key.value != "":
|
if self.api_key.value != "":
|
||||||
await self.config.guild(interaction.guild).api_key.set(self.api_key.value)
|
await self.config.guild(interaction.guild).api_key.set(self.api_key.value)
|
||||||
trimmed_api_key = self.api_key.value[:16] + "..."
|
trimmed_api_key = self.api_key.value[:16] + "`..."
|
||||||
message += f"- API Key set to `{trimmed_api_key}`\n"
|
message += f"- API Key set to `{trimmed_api_key}\n"
|
||||||
if self.server_id.value != "":
|
if self.server_id.value != "":
|
||||||
await self.config.guild(interaction.guild).server_id.set(self.server_id.value)
|
await self.config.guild(interaction.guild).server_id.set(self.server_id.value)
|
||||||
message += f"- Server ID set to `{self.server_id.value}`\n"
|
message += f"- Server ID set to `{self.server_id.value}`\n"
|
||||||
if message == "":
|
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: `{await self.config.guild(interaction.guild).base_url()}`\n- API Key: `{trimmed_api_key}`\n- Server ID: `{await self.config.guild(interaction.guild).server_id()}`"
|
send = f"No changes were made.\nCurrent configuration:\n- Base URL: `{await self.config.guild(interaction.guild).base_url()}`\n- API Key: `{trimmed_api_key}\n- Server ID: `{await self.config.guild(interaction.guild).server_id()}`"
|
||||||
else:
|
else:
|
||||||
send = f"Configuration changed:\n{message}"
|
send = f"Configuration changed:\n{message}"
|
||||||
await interaction.response.send_message(send, ephemeral=True)
|
await interaction.response.send_message(send, ephemeral=True)
|
||||||
|
|
Reference in a new issue