hopefully fixed modals

This commit is contained in:
Seaswimmer 2023-07-14 12:10:50 -04:00
parent c99416ede5
commit 75eef36874
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)