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

What is the proper embed type for .gifv? #5

Open
Kardbord opened this issue Oct 2, 2021 · 0 comments
Open

What is the proper embed type for .gifv? #5

Kardbord opened this issue Oct 2, 2021 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Kardbord
Copy link
Owner

Kardbord commented Oct 2, 2021

How should .gifv files be embedded in Discord?

As of this writing, the bot checks for the .gifv extension when embedding reddit posts and embeds it as a video.
https://github.com/TannerKvarfordt/Kard-bot/blob/551296e4c8cb0a0bd46e5c982dc5fa56094ee83a/kardbot/reddit.go#L159-L162

The Discord API (and discordgo library) seem to indicate that the gifv type is unique from other image types, such as .gif files, and hint that it can be embedded as a video. However, I haven't found a definitive answer one way or another, and I am taking my cues from a deprecated portion of the API. So the question still stands.

@Kardbord Kardbord added help wanted Extra attention is needed question Further information is requested labels Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant