diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index aee271f..f6d98ae 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -15,9 +15,9 @@ class Pterodactyl(commands.Cog): async def get_url(self, guild, endpoint = None): """Returns the base url for the Servers API, or the url for a specific endpoint if one is provided.""" - if not await self.config.guild(guild).server_id(): + if await self.config.guild(guild).server_id() is None: raise LookupError("Server ID not set.") - elif not await self.config.guild(guild).base_url(): + elif await self.config.guild(guild).base_url() is None: raise LookupError("Base URL not set.") base_url = await self.config.guild(guild).base_url() server_id = await self.config.guild(guild).server_id()