如何为Discord创建自己的嵌入网站 [英] How to create own embed site for Discord

查看:72
本文介绍了如何为Discord创建自己的嵌入网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如您所知,当您输入网站地址时(例如 https://youtube.com ),您还会自动发送网站的Rich Embed消息.我该如何为我的网站设置它?

As your know, when you type a website address (for ex. https://youtube.com), you also send a Rich Embed message of site automatically. How can I set this for my website?

推荐答案

将此html代码放在您的网站顶部.

Put this html code in the top of your site.

    <title>Website Name</title>
    <meta content="Embed Title" property="og:title">
  <meta content="Site Description" property="og:description">
    <meta content="https://embed.com/this-is-the-site-url" property="og:url">
    <meta content="https://embed.com/embedimage.png" property="og:image">
    <meta content="#43B581" data-react-helmet="true" name="theme-color">

最后一个是嵌入的颜色.值得注意的是,discord并不总是立即更新嵌入.

The last one is the color of the embed. It is of note that discord doesn't always update the embed immediately.

P.S:别忘了用网站名称和描述替换网站名称"和网站描述".

P.S: Don't forget to replace "Website Name" and "Site Description" with the sites name and description.

这篇关于如何为Discord创建自己的嵌入网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆