且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义表情符号和动画表情符号无效[discord.py-rewrite]

更新时间:2021-12-27 22:27:59

您可以使用 Client.get_emoji 来获取 Emoji 对象,然后使用它来构建您的字符串

You can use Client.get_emoji to get the Emoji object, then use that to build your string

@bot.command()
async def say(ctx, *, text):
    ono = bot.get_emoji(521148278079881219)
    await ctx.send(f"{ono} You said {text}")