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

Handle events differently

This commit is contained in:
Steffo 2020-06-09 02:09:08 +02:00
parent 3fe7e94834
commit ab04e09101
Signed by: steffo
GPG key ID: 896A80F55F7C97F0

View file

@ -18,7 +18,7 @@ class PlayCommand(rc.Command):
url = args.joined(require_at_least=1)
if not (url.startswith("http://") or url.startswith("https://")):
raise rc.InvalidInputError(f"L'URL specificato non inizia con il nome di un protocollo supportato"
f" ([c]http://[/c] o [c]https://[/c]).")
f" ([c]http://[/c] o [c]https://[/c]).")
return [url]
def get_embed_color(self) -> Optional[int]: