You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add "youtu.be" to host name check. This solution is simple but not scalable. For example, if we later would like to add a feature where it can play shortened links in general, the list of allowed links would become too long.
Check if link contains a video or not. This solution requires a lot more coding but is more scalable. This can for example look for special HTML tags such as <iframe> or
The text was updated successfully, but these errors were encountered:
Describe the bug
music channel on discord only accepts
www.youtube.com
host name, not e.g.youtu.be
, a shorter version of the same URL.To Reproduce
Steps to reproduce the behavior:
$play https://youtu.be/dQw4w9WgXcQ
in the text bar and press enter.Expected behavior
The music should be played instead of deleting the message.
Screenshots
https://gyazo.com/ff1ce8687001a3f7aa6b64afb8072fc5 (made by @simpmaestro on Discord)
Possible solutions
The text was updated successfully, but these errors were encountered: