ytembed

Privateunrated

Content

31 lines
{=(COMMENT):Full Link No Playlist VidID}
{=(fl):{and({in(watch?v=):{1}}==true|{in(&list):{1}}==false):{args(2):watch?v=}}}

{=(COMMENT):Full Link Playlist VidID}
{=(flc):{if({in(watch?v=):{1}}==true):{args(2):watch?v=}}}
{=(fll):{and({in(&list):{flc}}==true|{in(&list):{1}}==true):{flc(1):&list}}}

{=(COMMENT):Short Link No Playlist VidID}
{=(sl):{and({in(youtu.be):{1}}==true|{in(?list):{1}}==false):{args(-0):/}}}

{=(COMMENT):Short Link Playlist VidID}
{=(slc):{if({in(youtu.be):{1}}==true):{args(-0):/}}}
{=(sll):{and({in(?list):{slc}}==true|{in(?list):{1}}==true):{slc(1):?list}}}

{=(COMMENT):Conditionally grabs the corresponding video ID.}
{=(vidid):{fl}{fll}{sl}{sll}}

{=(COMMENT):Checks for invalid links and displays an error message without a DL Link.}
{=(error):{if({vidid}==):true|false}}
{=(errorm):Invalid YouTube Video Link provided. Try again with a Valid Link.}

{=(COMMENT):Message to display when the user provided no argument.}
{=(noargs):Please specify a YouTube video link along with the command.
Allows for both full and shortened links to videos in playlists.}

{=(COMMENT):URL used for the Hyperlink.}
{=(url):https://www.youtube.com/embed/{vidid}}

{=(COMMENT):Hyperlink Format. Clickable Link within the Embed.}
{=(fmt):[Embed YouTube Link]({url} "Change the file format in the link's page if needed.")}
{=(hyperlink):{if({error}==false):{fmt}|{errorm}}}

Embed

1 line
{"color": 16711680, "title": "<:youtube:637507344443637764> YouTube link", "footer": {"text": "Command made by Asty' edited from original"}, "description": "{break({args}==):{noargs}}\n{hyperlink}"}
Raw JSON
{
  "id": 139794,
  "created_at": "2020-03-27T10:10:23.000Z",
  "tag_name": "ytembed",
  "nsfw": false,
  "owner_id": "256600241652891648",
  "uses": 10,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "517389501899735041",
  "sharer": "256600241652891648",
  "content": "{=(COMMENT):Full Link No Playlist VidID}\n{=(fl):{and({in(watch?v=):{1}}==true|{in(&list):{1}}==false):{args(2):watch?v=}}}\n\n{=(COMMENT):Full Link Playlist VidID}\n{=(flc):{if({in(watch?v=):{1}}==true):{args(2):watch?v=}}}\n{=(fll):{and({in(&list):{flc}}==true|{in(&list):{1}}==true):{flc(1):&list}}}\n\n{=(COMMENT):Short Link No Playlist VidID}\n{=(sl):{and({in(youtu.be):{1}}==true|{in(?list):{1}}==false):{args(-0):/}}}\n\n{=(COMMENT):Short Link Playlist VidID}\n{=(slc):{if({in(youtu.be):{1}}==true):{args(-0):/}}}\n{=(sll):{and({in(?list):{slc}}==true|{in(?list):{1}}==true):{slc(1):?list}}}\n\n{=(COMMENT):Conditionally grabs the corresponding video ID.}\n{=(vidid):{fl}{fll}{sl}{sll}}\n\n{=(COMMENT):Checks for invalid links and displays an error message without a DL Link.}\n{=(error):{if({vidid}==):true|false}}\n{=(errorm):Invalid YouTube Video Link provided. Try again with a Valid Link.}\n\n{=(COMMENT):Message to display when the user provided no argument.}\n{=(noargs):Please specify a YouTube video link along with the command.\nAllows for both full and shortened links to videos in playlists.}\n\n{=(COMMENT):URL used for the Hyperlink.}\n{=(url):https://www.youtube.com/embed/{vidid}}\n\n{=(COMMENT):Hyperlink Format. Clickable Link within the Embed.}\n{=(fmt):[Embed YouTube Link]({url} \"Change the file format in the link's page if needed.\")}\n{=(hyperlink):{if({error}==false):{fmt}|{errorm}}}",
  "embed": "{\"color\": 16711680, \"title\": \"<:youtube:637507344443637764> YouTube link\", \"footer\": {\"text\": \"Command made by Asty' edited from original\"}, \"description\": \"{break({args}==):{noargs}}\\n{hyperlink}\"}",
  "last_fetched": "2026-10-20T21:06:35.181Z"
}