您可以使用实用程序功能
discord.utils.get来获取适当的
Emoji对象。
from discord.utils import get@bot.eventasync def on_message(message): # we do not want the bot to reply to itself if message.author == bot.user: return if ':EmojiName:' in message.content: emoji = get(bot.get_all_emojis(), name='EmojiName') await bot.add_reaction(message, emoji)



