1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Fix play API bug

This commit is contained in:
Steffo 2020-02-24 01:50:54 +01:00
parent 9b793d3290
commit 7856c74c7b
3 changed files with 4 additions and 2 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalpack" name = "royalpack"
version = "5.5.1" version = "5.5.2"
description = "A Royalnet command pack for the Royal Games community" description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -18,6 +18,8 @@ class ApiDiscordPlayStar(ApiStar):
guild_id: Optional[int] = int(guild_id_str) guild_id: Optional[int] = int(guild_id_str)
except (ValueError, TypeError): except (ValueError, TypeError):
raise InvalidParameterError("'guild_id' is not a valid int.") raise InvalidParameterError("'guild_id' is not a valid int.")
else:
guild_id = None
log.info(f"Received request to play {url} on guild_id {guild_id} via web") log.info(f"Received request to play {url} on guild_id {guild_id} via web")
response = await self.interface.call_herald_event("discord", "discord_play", response = await self.interface.call_herald_event("discord", "discord_play",
url=url, url=url,

View file

@ -1 +1 @@
semantic = "5.5.1" semantic = "5.5.2"