hopefully fixed modals
This commit is contained in:
parent
c99416ede5
commit
75eef36874
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ class ConfigModal(discord.ui.Modal, title="Pterodactyl Manager Configuration"):
|
|||
)
|
||||
|
||||
async def on_submit(self, interaction: discord.Interaction):
|
||||
config_list = [await Pterodactyl.config.guild(self.guild).base_url(), await Pterodactyl.config.guild(self.guild).api_key(), await Pterodactyl.config.guild(self.guild).server_id()]
|
||||
config_list = [await Pterodactyl.config.guild(ConfigModal.guild).base_url(), await Pterodactyl.config.guild(ConfigModal.guild).api_key(), await Pterodactyl.config.guild(ConfigModal.guild).server_id()]
|
||||
message = ""
|
||||
if self.base_url.value != "":
|
||||
config_list[0].set(self.base_url)
|
||||
|
|
Reference in a new issue