Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos in Embeds #1253

Closed
nate-blum opened this issue Dec 11, 2019 · 12 comments
Closed

Videos in Embeds #1253

nate-blum opened this issue Dec 11, 2019 · 12 comments

Comments

@nate-blum
Copy link

image
In the docs, it seems that it is possible to add a video to a rich embed. However, when I try this, I don't see any videos in my embed. It works fine with pictures though. I'm using discord.js, could that be part of the issue?

Here's my embed:

  author: {
    name: 'WORLDSTARHIPHOP (@WORLDSTAR)',
    url: 'https://twitter.com/WORLDSTAR/status/1202689666949926917',
    icon_url: 'https://pbs.twimg.com/profile_images/488738791511703552/cxf92nyL_normal.png'
  },
  color: 44269,
  description: 'There goes that cellphone... 😯😂📱 (IG: ' +
    'andrewwmathis & wilmarinich) ' +
    'https://t.co/IljAHBEWYk',
  footer: {
    icon_url: 'https://images-ext-1.discordapp.net/external/bXJWV2Y_F3XSra_kEqIYXAAsI3m1meckfLhYuWzxIfI/https/abs.twimg.com/icons/apple-touch-icon-192x192.png',
    text: 'Twitter'
  },
  video: {
    url: 'https://video.twimg.com/ext_tw_video/1202689635769389057/pu/vid/540x960/95WcDAAN9tTAH1Ah.mp4'
  }
}

I'm trying to make a twitter interface for discord if that helps.

@PixeLInc
Copy link
Contributor

Bots can't post video embeds.

That structure is only there to show you can read it if one is sent.

@nate-blum
Copy link
Author

So I'll need to send the link to the video after the embed in order for it to show?

@AntiTcb
Copy link
Contributor

AntiTcb commented Dec 11, 2019

Or include the video link in the content of the message.

@z64
Copy link
Contributor

z64 commented Dec 11, 2019

For reference, that restriction is documented under here:

https://discordapp.com/developers/docs/resources/channel#create-message

For the embed object, you can set every field except type (it will be rich regardless of if you try to set it), provider, video, and any height, width, or proxy_url values for images.

@night
Copy link
Member

night commented Dec 12, 2019

Thanks for linking the create message docs. We don't support videos in bot/webhook embeds yet, but hope to in the future.

@MrFlynn
Copy link

MrFlynn commented Aug 23, 2020

Is there any timeline on when this might be added? This seems like something that a lot of bot creators would be interested in utilizing, myself included.

@NtTestAlert
Copy link

Attaching a file (video) works. Cannot however link to it in the text since links to attachments are not supported. Tried setting the image: to the embedded video. Shows error (probably tries to display the video in an )
Bots and webhooks obviously can send videos, its just the block from using video in embed. Probably would be able to use attached file as video field, as is possible with thumbnail, author image, and image fields.

@AmineDev07
Copy link

Bots can't post video embeds.

That structure is only there to show you can read it if one is sent.

image
explain this

@advaith1
Copy link
Contributor

advaith1 commented Jun 22, 2021

that's clearly a link embed (part of the link is visible at the top), not a bot embed

@AmineDev07
Copy link

AmineDev07 commented Jun 22, 2021 via email

@josejooj
Copy link

that's clearly a link embed (part of the link is visible at the top), not a bot embed

Yes, but how he incorporated the video in the embed body?

@ManHatos
Copy link
Contributor

that's clearly a link embed (part of the link is visible at the top), not a bot embed

Yes, but how he incorporated the video in the embed body?

That is an embedded link. The website supports embeds via the <meta> tag I believe.

s1ryx added a commit to s1ryx/bakufu-yag-scripts that referenced this issue Oct 16, 2023
embeds cant play videos so the logic was changed to just repost the URL and have discord itself create the embed instead of the bot since bot embed just support plain videos rel:discord/discord-api-docs#1253
s1ryx added a commit to s1ryx/bakufu-yag-scripts that referenced this issue Nov 7, 2023
embeds cant play videos so the logic was changed to just repost the URL and have discord itself create the embed instead of the bot since bot embed just support plain videos rel:discord/discord-api-docs#1253
s1ryx added a commit to s1ryx/bakufu-yag-scripts that referenced this issue Nov 7, 2023
embeds cant play videos so the logic was changed to just repost the URL and have discord itself create the embed instead of the bot since bot embed just support plain videos rel:discord/discord-api-docs#1253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests