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:
parent
3fe7e94834
commit
ab04e09101
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class PlayCommand(rc.Command):
|
||||||
url = args.joined(require_at_least=1)
|
url = args.joined(require_at_least=1)
|
||||||
if not (url.startswith("http://") or url.startswith("https://")):
|
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"
|
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]
|
return [url]
|
||||||
|
|
||||||
def get_embed_color(self) -> Optional[int]:
|
def get_embed_color(self) -> Optional[int]:
|
||||||
|
|
Loading…
Reference in a new issue