Skip to content

Message Preview v0.1.0~ ​

When you send a message link, babyrite expands that message's content as embedded content.

md
https://discord.com/channels/1390203929182339092/1496887099536838706/1497066171390886000

Follow these steps in your client to copy a message link.

  1. Right-click the message
  2. Click Copy Message Link from the context menu

  • Expands up to 3 links per message.
  • Content in NSFW channels is not expanded. The same applies to threads under an NSFW channel.
  • Links in messages sent by bots are ignored.
  • Links in DMs are ignored. Only messages in servers are handled.

What is shown ​

The linked message is shown as an embed with the following content.

ItemContent
AuthorThe sender's name and avatar
DescriptionThe message content
ImageThe first file attached to the message
FooterThe name of the linked channel
TimestampWhen the message was sent

If a message contains several links, all embeds are posted together in a single reply.

Replies and mentions ​

  • The preview is posted as a reply to the original message, and only the user who sent the link is notified.
  • Even if the linked message contains @everyone or user or role mentions, no one is notified when it is expanded.

Canceling a preview ​

If you don't want a link expanded, wrap the message link in <> and it will be ignored.

md
<https://discord.com/channels/1390203929182339092/1496887099536838706/1497066171390886000>

Behavior with channel permissions ​

babyrite behaves as follows with respect to channel permissions.

  • Message links pointing to another server (guild) are not expanded.
    • Permissions are defined per server, so babyrite cannot judge whether a channel in another server is viewable.
  • Messages in private threads and DMs are not expanded.
    • The exception is a link posted in the same private thread as the linked message, which is judged based on the parent channel's permissions.
  • The linked message is only expanded if every member who can view the source channel can also read it.
    • Reading the linked message requires both "View Channel" and "Read Message History" in its channel.
    • In voice and stage channels, "Connect" is required as well.
    • Permissions are evaluated the way Discord does, including members who hold several roles at once.
    • It is not expanded if even one member could view the source channel but not read the linked message.
  • Public threads are judged based on their parent channel's permissions.
  • Members granted or denied access individually are looked up and judged on their actual roles.
    • If more than 10 such members would need to be looked up for one link, it is not expanded, as a safety measure.
  • Links within the same channel are checked the same way: they are only expanded if every member who can view the channel also has "Read Message History" there.
    • In voice and stage channels, only members who also have "Connect" can see the preview, so only they are counted.

The message links babyrite currently supports are:

  • discord.com
  • canary.discord.com
  • ptb.discord.com

Any other message link is ignored for safety reasons.

About the domain used by some Windows clients

The discordapp.com domain, used by some Windows clients, is a legacy format. Support for this domain was dropped in a past version.

See the following issue for details.

Support discordapp.com - m1sk9/babyrite #172

Caching ​

When babyrite expands a message link, it caches the guild's channel list and the source channel of the message.

From the second preview of a message in the same channel onward, the channel is retrieved from the cache instead of querying the Discord API.

See Caching for details.