• <i id='hbiVv'><tr id='hbiVv'><dt id='hbiVv'><q id='hbiVv'><span id='hbiVv'><b id='hbiVv'><form id='hbiVv'><ins id='hbiVv'></ins><ul id='hbiVv'></ul><sub id='hbiVv'></sub></form><legend id='hbiVv'></legend><bdo id='hbiVv'><pre id='hbiVv'><center id='hbiVv'></center></pre></bdo></b><th id='hbiVv'></th></span></q></dt></tr></i><div id='hbiVv'><tfoot id='hbiVv'></tfoot><dl id='hbiVv'><fieldset id='hbiVv'></fieldset></dl></div>

    <small id='hbiVv'></small><noframes id='hbiVv'>

      <bdo id='hbiVv'></bdo><ul id='hbiVv'></ul>
    <tfoot id='hbiVv'></tfoot>

        <legend id='hbiVv'><style id='hbiVv'><dir id='hbiVv'><q id='hbiVv'></q></dir></style></legend>

        Discord.py 检查用户是否对特定的表情符号做出反应

        Discord.py check if user reacts with a specific emoji(Discord.py 检查用户是否对特定的表情符号做出反应)
          <legend id='CuBH0'><style id='CuBH0'><dir id='CuBH0'><q id='CuBH0'></q></dir></style></legend>

                <i id='CuBH0'><tr id='CuBH0'><dt id='CuBH0'><q id='CuBH0'><span id='CuBH0'><b id='CuBH0'><form id='CuBH0'><ins id='CuBH0'></ins><ul id='CuBH0'></ul><sub id='CuBH0'></sub></form><legend id='CuBH0'></legend><bdo id='CuBH0'><pre id='CuBH0'><center id='CuBH0'></center></pre></bdo></b><th id='CuBH0'></th></span></q></dt></tr></i><div id='CuBH0'><tfoot id='CuBH0'></tfoot><dl id='CuBH0'><fieldset id='CuBH0'></fieldset></dl></div>
                  <tbody id='CuBH0'></tbody>

                <tfoot id='CuBH0'></tfoot>

              1. <small id='CuBH0'></small><noframes id='CuBH0'>

                  <bdo id='CuBH0'></bdo><ul id='CuBH0'></ul>
                • 本文介绍了Discord.py 检查用户是否对特定的表情符号做出反应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想知道是否有办法使用 Discord.py 来检查某人是否对特定表情符号做出了反应.

                  I was wondering if there's a way to check if someone reacted with a specific emoji using Discord.py.

                  推荐答案

                  下面的命令会回复一条消息,然后等待一个 :smile::custom_emoji: 对该消息的反应.

                  The below command will reply with a message, then wait for either a :smile: or :custom_emoji: reaction on that message.

                  from discord.utils import get
                  from discord.ext import commands
                  
                  bot = commands.Bot("!")
                  
                  @bot.command(pass_context=True)
                  async def checkreacts(ctx):
                      msg1 = await bot.say("React to me!")
                      custom_emoji = get(ctx.message.server.emojis, name="custom_emoji")
                      reaction = await bot.wait_for_reaction(['N{SMILE}', custom_emoji], msg1)
                      await bot.say("You responded with {}".format(reaction.emoji))
                  
                  bot.run("token")
                  

                  这篇关于Discord.py 检查用户是否对特定的表情符号做出反应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  【网站声明】本站部分内容来源于互联网,旨在帮助大家更快的解决问题,如果有图片或者内容侵犯了您的权益,请联系我们删除处理,感谢您的支持!

                  相关文档推荐

                  How to make a discord bot that gives roles in Python?(如何制作一个在 Python 中提供角色的不和谐机器人?)
                  Discord bot isn#39;t responding to commands(Discord 机器人没有响应命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“关于我吗?Discord 机器人的功能?(不和谐.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 机器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自动更改角色颜色)
                    <tbody id='bZjoj'></tbody>
                    <tfoot id='bZjoj'></tfoot>

                    • <small id='bZjoj'></small><noframes id='bZjoj'>

                    • <legend id='bZjoj'><style id='bZjoj'><dir id='bZjoj'><q id='bZjoj'></q></dir></style></legend>

                          <i id='bZjoj'><tr id='bZjoj'><dt id='bZjoj'><q id='bZjoj'><span id='bZjoj'><b id='bZjoj'><form id='bZjoj'><ins id='bZjoj'></ins><ul id='bZjoj'></ul><sub id='bZjoj'></sub></form><legend id='bZjoj'></legend><bdo id='bZjoj'><pre id='bZjoj'><center id='bZjoj'></center></pre></bdo></b><th id='bZjoj'></th></span></q></dt></tr></i><div id='bZjoj'><tfoot id='bZjoj'></tfoot><dl id='bZjoj'><fieldset id='bZjoj'></fieldset></dl></div>

                          • <bdo id='bZjoj'></bdo><ul id='bZjoj'></ul>