changed some things

This commit is contained in:
Seaswimmer 2023-07-14 11:54:17 -04:00
parent 46e33cf989
commit ba67023b12
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -44,14 +44,14 @@ class Pterodactyl(commands.Cog):
"""Configures the Pterodactyl cog.""" """Configures the Pterodactyl cog."""
await interaction.response.send_modal(self.ConfigModal(interaction.guild)) await interaction.response.send_modal(self.ConfigModal(interaction.guild))
class ConfigModal(discord.ui.Modal, title="Configuration"): class ConfigModal(discord.ui.Modal, title="Pterodactyl Manager Configuration"):
def __init__(self, guild: discord.guild): def __init__(self, guild: discord.guild):
super().__init__() super().__init__()
self.guild = guild self.guild = guild
base_url = discord.ui.TextInput( base_url = discord.ui.TextInput(
label="Base URL", label="Base URL",
placeholder="Input your Pterodactyl Panel's Base URL here, without `HTTPS` or `HTTP`.", placeholder="Input your Pterodactyl Panel's Base URL here, without HTTPS or HTTP.",
style=discord.TextStyle.paragraph, style=discord.TextStyle.short,
required=False, required=False,
max_length=300 max_length=300
) )