Generates Discord meta tags for the HTML head section.
Discord primarily uses Open Graph tags for link previews, but also supports some Discord-specific tags for better server integration.
import { discord } from '@raven-js/beak/seo';const tags = discord({ title: 'Join Our Community', description: 'Connect with like-minded developers', domain: 'example.com', path: '/community', imageUrl: '/discord-banner.jpg', invite: 'abc123'});// Output:// <meta name="discord:title" property="discord:title" content="Join Our Community" />// <meta name="discord:description" property="discord:description" content="Connect with like-minded developers" />// <meta name="discord:url" property="discord:url" content="https://example.com/community" />// <meta name="discord:image" property="discord:image" content="https://example.com/discord-banner.jpg" />// <meta name="discord:invite" property="discord:invite" content="abc123" /> Copy
import { discord } from '@raven-js/beak/seo';const tags = discord({ title: 'Join Our Community', description: 'Connect with like-minded developers', domain: 'example.com', path: '/community', imageUrl: '/discord-banner.jpg', invite: 'abc123'});// Output:// <meta name="discord:title" property="discord:title" content="Join Our Community" />// <meta name="discord:description" property="discord:description" content="Connect with like-minded developers" />// <meta name="discord:url" property="discord:url" content="https://example.com/community" />// <meta name="discord:image" property="discord:image" content="https://example.com/discord-banner.jpg" />// <meta name="discord:invite" property="discord:invite" content="abc123" />
Configuration object for Discord tags
The generated Discord meta tags as an HTML string
Generates Discord meta tags for the HTML head section.
Discord primarily uses Open Graph tags for link previews, but also supports some Discord-specific tags for better server integration.
Example