fix(pterodactyl): fix some incorrect function names
This commit is contained in:
parent
10b31c81b3
commit
15b7ef61b1
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class Pterodactyl(commands.Cog):
|
|||
|
||||
__author__ = ["[cswimr](https://www.coastalcommits.com/cswimr)"]
|
||||
__git__ = "https://www.coastalcommits.com/cswimr/SeaCogs"
|
||||
__version__ = "2.0.8"
|
||||
__version__ = "2.0.9"
|
||||
__documentation__ = "https://seacogs.coastalcommits.com/pterodactyl/"
|
||||
|
||||
def __init__(self, bot: Red):
|
||||
|
@ -234,7 +234,7 @@ class Pterodactyl(commands.Cog):
|
|||
if view.result is True:
|
||||
await message.edit(content=f"Sending websocket command to {action} server...", view=None)
|
||||
|
||||
await self._websocket_send(json.dumps({"event": "set state", "args": [action]}))
|
||||
await self._send(json.dumps({"event": "set state", "args": [action]}))
|
||||
|
||||
await message.edit(content=f"Server {action_ing}", view=None)
|
||||
return
|
||||
|
@ -248,7 +248,7 @@ class Pterodactyl(commands.Cog):
|
|||
ctx = await self.bot.get_context(ctx)
|
||||
if channel:
|
||||
await channel.send(f"Received console command from {ctx.author.id}: {command[:1900]}", allowed_mentions=discord.AllowedMentions.none())
|
||||
await self._websocket_send(json.dumps({"event": "send command", "args": [command]}))
|
||||
await self._send(json.dumps({"event": "send command", "args": [command]}))
|
||||
await ctx.send(f"Command sent to server. {box(command, 'json')}")
|
||||
|
||||
@commands.Cog.listener()
|
||||
|
|
Loading…
Add table
Reference in a new issue