Disocordpy嵌入列

所以我在一些嵌入中看到了这个字段列,我意识到我的嵌入很无聊。我的问题是 - 这个列是如何制作的?它是图像还是什么?如何将这些列添加到我的嵌入中?这些是表情符号吗?如果是这样,我在哪里可以得到它们?我知道我问了太多问题,但我只是好奇。谢谢

回答

您可以使用该>符号来制作这些列。

我重新制作了图片中显示的嵌入:

import discord, datetime
from discord.ext import commands

client = discord.ext.commands.Bot(command_prefix = "!"); 

@client.command()
async def embed(ctx):
    embed = discord.Embed(
        title = "Deep Stone Crypt Void Run",
        description = "All void subclass run of Deep Stone Crypt for the triumph.nExperience optional.",
        colour = discord.Colour.from_rgb(241,196,15)
        )
    embed.add_field(name="Time", value="Mon Dec 7th, 2020 • 6pm - 9pm PST (UTC-8)", inline=False)
    embed.add_field(name="Links", value="[Add to calender](https://discordapp.com)n[Convert time zone](https://discordapp.com)", inline=False)
    embed.add_field(name="? Accepted (4/6)", value="> TMCn> ArcaneVoidn> LilRemsyn> Asal", inline=True)
    embed.add_field(name="? Declined (2)", value="> Joe_Hammersmashn> Jeiyiu", inline=True)
    embed.add_field(name="? Tentative (2)", value="> Awoken Phoenixn> datigren186", inline=True)
    embed.set_footer(text="Created by TMCnLocal time")
    embed.timestamp = datetime.datetime.now()

    await ctx.send(embed=embed)

client.run("token_here")

输出:

查看this article以了解有关 Discord Markdown 的更多信息。


以上是Disocordpy嵌入列的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>