我可以通过Discord机器人制作自定义表情符号吗

时间:2019-07-18 15:14:05

标签: python discord discord.py

我想用机器人制作表情符号。 但我找不到有关制作表情符号的任何信息。

所以我的问题是“我可以通过机器人制作表情符号吗?”

1 个答案:

答案 0 :(得分:1)

https://discordpy.readthedocs.io/en/latest/api.html#discord.Guild.create_custom_emoji

with open("my_emoji.jpg", 'rb') as fd:
    await message.guild.create_custom_emoji(name='my_emoji', image=fd.read())
相关问题