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

  • <tfoot id='umdSq'></tfoot>

          <bdo id='umdSq'></bdo><ul id='umdSq'></ul>

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

      3. <legend id='umdSq'><style id='umdSq'><dir id='umdSq'><q id='umdSq'></q></dir></style></legend>

        對于 discord.py,我如何將作者的 id 變成不和諧用

        For discord.py, how would I turn the author#39;s id into the discord user#39;s actual name?(對于 discord.py,我如何將作者的 id 變成不和諧用戶的真實姓名?)

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

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

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

            • <tfoot id='OLYMr'></tfoot>
                  <tbody id='OLYMr'></tbody>
                  <bdo id='OLYMr'></bdo><ul id='OLYMr'></ul>
                  本文介紹了對于 discord.py,我如何將作者的 id 變成不和諧用戶的真實姓名?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在使用 message.author.id 時遇到問題.當我要求機器人返回用戶 ID 時,它會返回...用戶 ID.但這不是我想要的.我想讓它說出用戶的不和諧名稱(例如,而不是像 13284701972315 那樣,它會說 MyName #0000).我正在制作一個機器人,它會根據(jù)命令給出布朗尼點數(shù).這是它可能會說的內(nèi)容和示例.

                  I'm having trouble with message.author.id. When I ask a bot to return the user's ID, it returns the well... user ID. But that's not what I want. I want it to say the user's discord name (for an example, instead of like 13284701972315 it would say MyName #0000). I'm making a bot which will give out brownie points on command. Here's and example of what it might say.

                  311661286213550091 給@AceFTW 22 分.他們目前有 22布朗尼點!

                  311661286213550091 has given 22 brownie points to @AceFTW. They currently have 22 brownie points!

                  我想這樣說:

                  @tristan360 給了@AceFTW 22 分.他們目前有 22布朗尼點!

                  @tristan360 has given 22 brownie points to @AceFTW. They currently have 22 brownie points!

                  我正在尋找一種讓機器人顯示用戶名而不是用戶 ID 的方法.

                  I'm looking for a way for the bot to display the user's name instead of the user's ID.

                  推薦答案

                  如果您已經(jīng)有一個 Member 對象,則可以立即訪問該名稱.

                  If you have a Member object already, you can access the name straight away.

                  # member is <Member id=... name=MyName#0000>
                  member.name  # MyName
                  member.nick  # MyNick
                  member.display_name  # MyNick if nick is not None, else MyName
                  member.mention  # @MyName
                  str(member)  # MyName#0000
                  

                  如果您沒有 Member 對象,但有 Guild(discord.py 0.x 中的 Server),您可以使用 Guild.get_member 方法.

                  If you do not have a Member object, but do have a Guild (Server in discord.py 0.x,) you can use the Guild.get_member method.

                  member = guild.get_member(userID)
                  member.name  # MyName
                  

                  如果您根本沒有任何信息,可以使用 Client.get_user_info 方法.請注意,這將返回 User 而不是 Member,因此您將無法訪問昵稱、角色等.

                  If you don't have any information at all starting, you can use the Client.get_user_info method. Note, this returns a User not a Member, so you will not have access to nicknames, roles, etc.

                  user = bot.get_user_info(userID)
                  user.name  # MyName
                  user.nick  # Error
                  

                  這篇關(guān)于對于 discord.py,我如何將作者的 id 變成不和諧用戶的真實姓名?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?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 - 自動更改角色顏色)
                    <i id='B06KR'><tr id='B06KR'><dt id='B06KR'><q id='B06KR'><span id='B06KR'><b id='B06KR'><form id='B06KR'><ins id='B06KR'></ins><ul id='B06KR'></ul><sub id='B06KR'></sub></form><legend id='B06KR'></legend><bdo id='B06KR'><pre id='B06KR'><center id='B06KR'></center></pre></bdo></b><th id='B06KR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='B06KR'><tfoot id='B06KR'></tfoot><dl id='B06KR'><fieldset id='B06KR'></fieldset></dl></div>

                          <bdo id='B06KR'></bdo><ul id='B06KR'></ul>
                            <tbody id='B06KR'></tbody>
                        • <small id='B06KR'></small><noframes id='B06KR'>

                          • <legend id='B06KR'><style id='B06KR'><dir id='B06KR'><q id='B06KR'></q></dir></style></legend>
                          • <tfoot id='B06KR'></tfoot>
                            主站蜘蛛池模板: 精品中文字幕一区二区三区 | 成人在线免费观看视频 | 欧美一卡二卡在线 | 国产中文在线 | 日韩三级一区 | 成人av免费看 | 久草综合在线 | 日韩精品在线一区 | 亚洲在线免费观看 | 久久久久久久久久久久久9999 | 亚洲协和影视 | 污污的网站在线观看 | 欧美色视频免费 | 精品视频在线观看 | 在线观看视频亚洲 | 日韩精品在线一区 | 国产一卡二卡三卡 | 免费成人毛片 | 中文字幕视频在线观看 | 91亚洲精品久久久电影 | 国产精品一区二区三区四区 | 国产成人精品久久二区二区 | 国产一二三区在线 | 亚洲成人国产精品 | 国产999精品久久久久久绿帽 | 91麻豆精品国产91久久久更新资源速度超快 | 久久久久久99 | 久久久xx| 久久乐国产精品 | 国产精品1区2区3区 中文字幕一区二区三区四区 | 99色在线 | 免费在线性爱视频 | 欧美黄色一区 | 欧美一级二级三级视频 | 精久久久 | 99精品久久久 | 午夜影院网站 | 日韩第一区 | 天天色图 | 国产精品区一区二区三 | 亚洲日本免费 |