mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 12:48:54 -05:00
[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
This commit is contained in:
parent
ecb64cc2ec
commit
28bc68c916
@ -14,7 +14,7 @@ from .manager import shutdown_lavalink_server
|
|||||||
|
|
||||||
_ = Translator("Audio", __file__)
|
_ = Translator("Audio", __file__)
|
||||||
|
|
||||||
__version__ = "0.0.6"
|
__version__ = "0.0.6a"
|
||||||
__author__ = ["aikaterna", "billy/bollo/ati"]
|
__author__ = ["aikaterna", "billy/bollo/ati"]
|
||||||
|
|
||||||
|
|
||||||
@ -1625,7 +1625,7 @@ class Audio:
|
|||||||
await self._embed_msg(ctx, "Server password set to {}.".format(password))
|
await self._embed_msg(ctx, "Server password set to {}.".format(password))
|
||||||
|
|
||||||
@llsetup.command()
|
@llsetup.command()
|
||||||
async def restport(self, ctx, rest_port):
|
async def restport(self, ctx, rest_port: int):
|
||||||
"""Set the lavalink REST server port."""
|
"""Set the lavalink REST server port."""
|
||||||
await self.config.rest_port.set(rest_port)
|
await self.config.rest_port.set(rest_port)
|
||||||
if await self._check_external():
|
if await self._check_external():
|
||||||
@ -1638,9 +1638,9 @@ class Audio:
|
|||||||
await self._embed_msg(ctx, "REST port set to {}.".format(rest_port))
|
await self._embed_msg(ctx, "REST port set to {}.".format(rest_port))
|
||||||
|
|
||||||
@llsetup.command()
|
@llsetup.command()
|
||||||
async def wsport(self, ctx, ws_port):
|
async def wsport(self, ctx, ws_port: int):
|
||||||
"""Set the lavalink websocket server port."""
|
"""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():
|
if await self._check_external():
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
colour=ctx.guild.me.top_role.colour,
|
colour=ctx.guild.me.top_role.colour,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user