fix(pterodactyl): don't await something that isn't a coroutine
This commit is contained in:
parent
d092f78502
commit
be27d882f2
1 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ class Pterodactyl(commands.Cog):
|
|||
await self.config.base_url.set(base_url)
|
||||
await ctx.send(f"Base URL set to {base_url}")
|
||||
self.logger.debug("Configuration value set: base_url = %s\nRestarting task...", base_url)
|
||||
await self.task.cancel()
|
||||
self.task.cancel()
|
||||
self.task = self.get_task()
|
||||
|
||||
@pterodactyl_config.command(name = "apikey")
|
||||
|
@ -104,7 +104,7 @@ class Pterodactyl(commands.Cog):
|
|||
await self.config.api_key.set(api_key)
|
||||
await ctx.send(f"API key set to `{api_key[:5]}...{api_key[-4:]}`")
|
||||
self.logger.debug("Configuration value set: api_key = %s\nRestarting task...", api_key)
|
||||
await self.task.cancel()
|
||||
self.task.cancel()
|
||||
self.task = self.get_task()
|
||||
|
||||
@pterodactyl_config.command(name = "serverid")
|
||||
|
@ -113,5 +113,5 @@ class Pterodactyl(commands.Cog):
|
|||
await self.config.server_id.set(server_id)
|
||||
await ctx.send(f"Server ID set to {server_id}")
|
||||
self.logger.debug("Configuration value set: server_id = %s\nRestarting task...", server_id)
|
||||
await self.task.cancel()
|
||||
self.task.cancel()
|
||||
self.task = self.get_task()
|
||||
|
|
Loading…
Reference in a new issue