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)