mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Fix play API bug
This commit is contained in:
parent
9b793d3290
commit
7856c74c7b
3 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
[tool.poetry]
|
||||
name = "royalpack"
|
||||
version = "5.5.1"
|
||||
version = "5.5.2"
|
||||
description = "A Royalnet command pack for the Royal Games community"
|
||||
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
|
||||
license = "AGPL-3.0+"
|
||||
|
|
|
@ -18,6 +18,8 @@ class ApiDiscordPlayStar(ApiStar):
|
|||
guild_id: Optional[int] = int(guild_id_str)
|
||||
except (ValueError, TypeError):
|
||||
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")
|
||||
response = await self.interface.call_herald_event("discord", "discord_play",
|
||||
url=url,
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.5.1"
|
||||
semantic = "5.5.2"
|
||||
|
|
Loading…
Reference in a new issue