From 28bc68c916202708ec5ba418d5106943a54ad357 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 22 May 2018 16:19:47 -0700 Subject: [PATCH] [V3 Audio] [p]llsetup fixes (#1656) * [V3 Audio] [p]llsetup fixes [p]llset wsport changed to not use the rest port setting and both the rest and ws ports were changed to use ints instead of strings. * [V3 Audio] Version change --- redbot/cogs/audio/audio.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index 5e4c1c8b4..92f1108e6 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -14,7 +14,7 @@ from .manager import shutdown_lavalink_server _ = Translator("Audio", __file__) -__version__ = "0.0.6" +__version__ = "0.0.6a" __author__ = ["aikaterna", "billy/bollo/ati"] @@ -1625,7 +1625,7 @@ class Audio: await self._embed_msg(ctx, "Server password set to {}.".format(password)) @llsetup.command() - async def restport(self, ctx, rest_port): + async def restport(self, ctx, rest_port: int): """Set the lavalink REST server port.""" await self.config.rest_port.set(rest_port) if await self._check_external(): @@ -1638,9 +1638,9 @@ class Audio: await self._embed_msg(ctx, "REST port set to {}.".format(rest_port)) @llsetup.command() - async def wsport(self, ctx, ws_port): + async def wsport(self, ctx, ws_port: int): """Set the lavalink websocket server port.""" - await self.config.rest_port.set(ws_port) + await self.config.ws_port.set(ws_port) if await self._check_external(): embed = discord.Embed( colour=ctx.guild.me.top_role.colour,