📌  相关文章
📜  https:discord.com embedlinkbas (1)

📅  最后修改于: 2023-12-03 15:01:20.644000             🧑  作者: Mango

Discord Embed Link Basics

Discord is a popular communication platform among gamers and communities. It allows users to create servers, channels, and roles to facilitate communication. Discord also provides various features, such as text and voice chat, file sharing, and integration with other services. In this article, we will discuss Discord embed link basics.

What is an Embed Link?

An embed link is a special type of link that allows you to display rich media content, such as images, videos, and links, directly in your Discord chat or server. When you post an embed link, Discord will automatically fetch the metadata associated with that link and format it for better presentation.

Basic Embed Link Format

To post an embed link in Discord, you need to use a specific format:

https://discord.com/embed/<type>?<parameters>

Here, <type> can be one of the following:

  • channel: to embed a specific channel
  • guild: to embed a specific guild (server)
  • message: to embed a specific message

And <parameters> are optional parameters that you can add to customize the embed link. The available parameters depend on the <type> you choose.

Let's take a closer look at how to use each <type>.

Embedding a Channel

To embed a specific channel, you need to know its ID. The ID can be found by right-clicking on the channel and selecting "Copy ID". Then, use the following format:

https://discord.com/embed/channel/<channel_id>

For example, if the channel ID is 1234567890, the embed link would be:

https://discord.com/embed/channel/1234567890
Embedding a Guild (Server)

To embed a specific guild, you also need to know its ID. The ID can be found by right-clicking on the server icon and selecting "Copy ID". Then, use the following format:

https://discord.com/embed/guild/<guild_id>

For example, if the guild ID is 1234567890, the embed link would be:

https://discord.com/embed/guild/1234567890
Embedding a Message

To embed a specific message, you need to know its ID and the channel ID it is posted in. The message ID can be found by right-clicking on the message and selecting "Copy Message Link". Then, extract the message ID from the link. The channel ID can be found using the method described above for embedding a channel. Then, use the following format:

https://discord.com/embed/message/<guild_id>/<channel_id>/<message_id>

For example, if the guild ID is 1234567890, the channel ID is 0987654321, and the message ID is 9876543210, the embed link would be:

https://discord.com/embed/message/1234567890/0987654321/9876543210
Customizing Embed Links

You can customize embed links by adding optional parameters to the end of the link. The available parameters depend on the <type> you choose. Here are some examples:

Channel Parameters
  • theme: to set the color theme of the embed link. Possible values are light and dark. Default is light.
  • height: to set the height of the embed link in pixels. Default is 600.
  • channel: to set the channel ID if it is not included in the link.
https://discord.com/embed/channel/<channel_id>?theme=dark&height=400
Guild Parameters
  • theme: same as channel parameters.
  • height: same as channel parameters.
https://discord.com/embed/guild/<guild_id>?theme=light&height=800
Message Parameters
  • theme: same as channel parameters.
  • height: same as channel parameters.
https://discord.com/embed/message/<guild_id>/<channel_id>/<message_id>?theme=dark&height=500
Conclusion

Discord embed links allow you to share rich media content in your Discord chat or server. By using the basic format and customizing the parameters, you can create personalized and engaging embed links.