From 75eef36874f77ff404bc9fd931f7781dcad6a76e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 14 Jul 2023 12:10:50 -0400 Subject: [PATCH] hopefully fixed modals --- pterodactyl/ptero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 46eb011..ee2d7d8 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -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)