久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='6CxDZ'></tfoot>

    1. <small id='6CxDZ'></small><noframes id='6CxDZ'>

      • <bdo id='6CxDZ'></bdo><ul id='6CxDZ'></ul>
    2. <legend id='6CxDZ'><style id='6CxDZ'><dir id='6CxDZ'><q id='6CxDZ'></q></dir></style></legend>
      1. <i id='6CxDZ'><tr id='6CxDZ'><dt id='6CxDZ'><q id='6CxDZ'><span id='6CxDZ'><b id='6CxDZ'><form id='6CxDZ'><ins id='6CxDZ'></ins><ul id='6CxDZ'></ul><sub id='6CxDZ'></sub></form><legend id='6CxDZ'></legend><bdo id='6CxDZ'><pre id='6CxDZ'><center id='6CxDZ'></center></pre></bdo></b><th id='6CxDZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6CxDZ'><tfoot id='6CxDZ'></tfoot><dl id='6CxDZ'><fieldset id='6CxDZ'></fieldset></dl></div>

        更改用戶的昵稱——Discord.py

        Changing a user#39;s nickname -- Discord.py(更改用戶的昵稱——Discord.py)
      2. <small id='GLU5j'></small><noframes id='GLU5j'>

            <tfoot id='GLU5j'></tfoot>

                <tbody id='GLU5j'></tbody>
              <i id='GLU5j'><tr id='GLU5j'><dt id='GLU5j'><q id='GLU5j'><span id='GLU5j'><b id='GLU5j'><form id='GLU5j'><ins id='GLU5j'></ins><ul id='GLU5j'></ul><sub id='GLU5j'></sub></form><legend id='GLU5j'></legend><bdo id='GLU5j'><pre id='GLU5j'><center id='GLU5j'></center></pre></bdo></b><th id='GLU5j'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='GLU5j'><tfoot id='GLU5j'></tfoot><dl id='GLU5j'><fieldset id='GLU5j'></fieldset></dl></div>
                <bdo id='GLU5j'></bdo><ul id='GLU5j'></ul>
                • <legend id='GLU5j'><style id='GLU5j'><dir id='GLU5j'><q id='GLU5j'></q></dir></style></legend>
                  本文介紹了更改用戶的昵稱——Discord.py的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  當用戶的角色更新時,我希望機器人在 Admin 之后以他們的名字附加他們的用戶名,例如.管理員 |用戶名 但它不起作用.這是我的代碼:

                  When a user's role gets updated, I would like the bot to append their username after Admin in their name Eg. Admin | username But it doesn't work. Here's my code:

                  @client.event
                  async def on_member_update(before, after):
                      role = discord.utils.get(before.guild.roles, name="Admin")
                      if after in role.members:
                            await after.edit(nick="Admin | " + discord.user, reason=None)
                  

                  推薦答案

                  discord.user 是一個類,我們想要一個字符串,它是用戶的昵稱,user_name.

                  discord.user is a class, we want a string that is the nick, user_name of the user.

                  @client.event
                  async def on_member_update(before, after):
                      role = discord.utils.get(before.guild.roles, name="Admin")
                      if after.nick is not None and after.nick.startswith("Admin |"):
                          return
                      if after in role.members:
                            await after.edit(nick="Admin | " + after.display_name, reason=None) #discord.user is a class, we want the member's new display name.
                  

                  這篇關于更改用戶的昵稱——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 - 自動更改角色顏色)
                  • <bdo id='axLth'></bdo><ul id='axLth'></ul>
                    <legend id='axLth'><style id='axLth'><dir id='axLth'><q id='axLth'></q></dir></style></legend>
                        1. <small id='axLth'></small><noframes id='axLth'>

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

                          1. <tfoot id='axLth'></tfoot>
                              <tbody id='axLth'></tbody>

                          2. 主站蜘蛛池模板: 欧美日韩成人在线 | 成人午夜精品 | 欧美日韩亚 | 特黄视频 | www.精品国产 | 久久精品一级 | 欧美成人一区二区三区 | 91福利网 | 欧美日韩一区二区三区在线观看 | www.久久久久久久久久久 | 亚洲高清一区二区三区 | 熟女毛片 | 国产91一区二区三区 | 一级毛片网 | 一区二区视频在线 | 成人免费av | 欧美激情精品久久久久 | 欧美视频精品 | 国产高清免费视频 | 91精品国产91久久久久久 | 久久一级| 欧美一区二区三区在线 | 羞羞网站在线免费观看 | 日韩不卡一区二区 | 国产在线精品一区二区 | 日韩欧美亚洲 | 国产精品一区二区三区四区五区 | 精品视频在线观看 | 一级黄色短片 | 欧美日韩a | 亚洲精品视频免费看 | 亚洲区一区二区 | 日韩在线精品视频 | 亚洲国产精品久久人人爱 | 亚洲自拍偷拍av | 亚洲精品成人 | 日日草天天干 | 青久草视频 | 日本在线观看视频 | 国产精品视频播放 | 亚洲国产精品一区二区第一页 |