Discord Embed Card Data
Answered
Cape lion posted this in #help-forum
Cape lionOP
hi how was he able to set the color of this embed and set the photo as a thumbnail
(I know that this code has a lot of repetition and is not optimized I tried to use different values)
code:
(I know that this code has a lot of repetition and is not optimized I tried to use different values)
code:
export const metadata: Metadata = {
title: 'title',
description:
'...',
icons: './favicon.ico',
openGraph: {
title: {
template: 'title',
default: 'title',
absolute: 'title',
},
description:
'...',
images: '/icon.png',
locale: 'pl-PL',
type: 'website',
siteName: 'name',
},
};
7 Replies
Cape lionOP
bump
Cape lionOP
bump
@Cape lion Discord uses the theme-color tag for the embed left side
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#themecolor
https://nextjs.org/docs/app/api-reference/functions/generate-metadata#themecolor
Cape lionOP
OK thanks. How can I insert this photo as a thumbnail?
For the image placement, I think it's just about the image size
Answer
Cape lionOP
ok thanks
This seems to suggest Discord looks for the
twitter:card
tag for the image placement https://stackoverflow.com/a/59844733