changed some things
This commit is contained in:
parent
46e33cf989
commit
ba67023b12
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue