Skip to main content

Link previews

A fuller card under links from some sites, with Discord's own preview stepping aside.

Module: linkcards (menu name Link previews). Off until a server admin runs /moduleadmin enable module: Link previews guild_id: <this server's ID>. See Modules.

What members see​

Someone posts a link. A few seconds later Chancery replies to that message with a card: who posted it, the text, the pictures or video, and the numbers. Chancery hides Discord's own preview on the original message, so there is one preview and not two.

If a site is down, the post is private, or the link is gone, nothing happens and Discord's preview stays. Members never see a failure message.

A card only replaces Discord's preview where it shows more than Discord's does. Links inside a spoiler get no card and keep Discord's preview, so the spoiler still hides what it covers.

Which sites​

SiteWhat the card adds
XThe author, the text, the pictures or video, the numbers, and the post's added context (Community Notes) as its own block
RobloxGames with their pictures, player and like counts and a Play button. Also items and models, people, groups and badges. A private server invite shows its game with a Join server button
Apple MusicThe song or album, with its 30 second clip as a real attachment
SpotifySongs, albums and episodes with the cover, the title and a playable clip. Playlists and shows get a card beside Discord's player
YouTubeA card of numbers beside Discord's own player. The video still plays in Discord
TikTok, Snapchat, InstagramThe poster, the text, the pictures or video, and the numbers
TelegramA post from a public channel (t.me/<channel>/<number>): the channel's name and picture, the whole text, up to four pictures, the views and the date. A video shows its still picture and a poll its question. Links inside the text show where they go. Private channels, deleted posts and invite links get no card
Discord profilesA link to discord.com/users/<id> shows the person's names, avatar, banner and badges, but only for somebody who is in the server. A link to anyone else gets no card

Links that go through a link-fixer site, such as fxtwitter.com, count as the real site.

The buttons on a card​

ButtonWho can press itWhat it does
RemoveThe person who posted the link, and anyone with Manage MessagesDeletes the card and brings Discord's own preview back on the original message
Show rawAnyoneShows the card's text as plain text, in a message only the person who pressed it can see
Look up in RCRAnyoneAppears on a Roblox person's card when Record lookup is on. Searches the records archive for that account and answers privately
Play, Creator, and other site buttonsAnyoneOpen the link on the site. Play opens a Chancery page that starts the Roblox app on that game

If someone deletes the original message, Chancery deletes its card too. It remembers the 500 most recent cards, and forgets them when the bot restarts.

In one messageWhat happens
One linkOne card
The same post twice, such as a short link and its full linkOne card
Two or three different linksOne card each, as replies in the order the links appear
Four or more different linksNo cards. Discord's own previews show, which suits a pile of links
More cards than the channel has left this minuteNo cards. A message gets all its cards or none
One link has no card (private, deleted, site down)The other links still get theirs. Discord's previews come back for the whole message, because Discord can only hide previews for a whole message at once
A link from a site Chancery does not coverThe cards come as extras and Discord's previews stay for everything
A link in <angle brackets>, a spoiler or codeLeft alone, link by link

Remove on a card takes away that card only. When the last card goes, Discord's own preview comes back.

What Chancery needs in the channel​

View Channel, Send Messages and Read Message History. To hide Discord's own preview on the original message it also needs Manage Messages. Without that, the card still appears and Discord's preview stays beside it.

Keeping it quiet in some channels​

Quiet channels is a setting in the dashboard's settings for Link previews (or /config set key: linkcards_ignore_channels). Links in those channels, and in threads under them, keep Discord's own preview and get no card.

Limits​

Chancery posts at most six cards a minute in one channel, and a message needs all its cards to fit in what is left of that minute. A message has at most three cards (see above). A person can press Look up in RCR five times a minute.

When you are stuck

Nothing happens when I post a link

Check, in this order: the module is on for the server; the channel is not in Quiet channels; Chancery can see the channel and send messages there; the site is one in the table above; the message has no more than three different links. A link to a post that is private or deleted gets no card, by design.

The card appears but Discord's preview is still there too

Chancery lacks Manage Messages in that channel, so it cannot hide Discord's preview. Give it that permission there. The link may also be inside a spoiler, which keeps Discord's preview on purpose.

I pressed Remove and the card went, but Discord's preview did not come back

Chancery needs Manage Messages in that channel to bring Discord's preview back. Without it, only the card is removed.

Look up in RCR says record lookup is not switched on

The Record lookup module is off in this server. A server admin turns it on with /moduleadmin enable.