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

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

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

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

        如何在 discord.py rewrite 中獲取成員數?

        How to get the member count in discord.py rewrite?(如何在 discord.py rewrite 中獲取成員數?)
        <tfoot id='WgkU8'></tfoot>
          <tbody id='WgkU8'></tbody>
        <i id='WgkU8'><tr id='WgkU8'><dt id='WgkU8'><q id='WgkU8'><span id='WgkU8'><b id='WgkU8'><form id='WgkU8'><ins id='WgkU8'></ins><ul id='WgkU8'></ul><sub id='WgkU8'></sub></form><legend id='WgkU8'></legend><bdo id='WgkU8'><pre id='WgkU8'><center id='WgkU8'></center></pre></bdo></b><th id='WgkU8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WgkU8'><tfoot id='WgkU8'></tfoot><dl id='WgkU8'><fieldset id='WgkU8'></fieldset></dl></div>

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

              • <bdo id='WgkU8'></bdo><ul id='WgkU8'></ul>
                <legend id='WgkU8'><style id='WgkU8'><dir id='WgkU8'><q id='WgkU8'></q></dir></style></legend>
                1. 本文介紹了如何在 discord.py rewrite 中獲取成員數?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我想發出一個命令來顯示成員數,但它不起作用.

                  I wanted to make an command to show the membercount but it doesn't work.

                  這就是我所擁有的:

                  @bot.command(name='membercount')
                  async def membercount(ctx):
                      await ctx.send(len(guild.member_count))
                  

                  這是我得到的錯誤:模塊discord.guild"沒有member_count"成員

                  我嘗試在互聯網上搜索,但沒有找到可行的選項.

                  I tried searching on the internet but didn't find a working option.

                  推薦答案

                  雖然 Ron 的示例 確實 工作,但考慮到 ctx.guild.members 只是一個列表,這意味著您可以在其上使用 len() :

                  Although Ron's example does work, it is not a very elegant way considering that ctx.guild.members is just a list, meaning you can use len() on it as such:

                  member_count = len(ctx.guild.members) # includes bots
                  
                  true_member_count = len([m for m in ctx.guild.members if not m.bot]) # doesn't include bots
                  

                  另外不要忘記,如果某個答案解決了您的問題,您應該將其標記為已接受",并在其旁邊使用復選標記,以向來自搜索機器的其他用戶顯示該問題對您有用.

                  Also don't forget that if an answer solved your problem, you should mark it as "accepted" with that checkmark next to it, as to show other users coming from search machines to this question, what worked for you.

                  這篇關于如何在 discord.py rewrite 中獲取成員數?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 - 自動更改角色顏色)
                  • <legend id='D30Cj'><style id='D30Cj'><dir id='D30Cj'><q id='D30Cj'></q></dir></style></legend>
                      <tbody id='D30Cj'></tbody>
                      <i id='D30Cj'><tr id='D30Cj'><dt id='D30Cj'><q id='D30Cj'><span id='D30Cj'><b id='D30Cj'><form id='D30Cj'><ins id='D30Cj'></ins><ul id='D30Cj'></ul><sub id='D30Cj'></sub></form><legend id='D30Cj'></legend><bdo id='D30Cj'><pre id='D30Cj'><center id='D30Cj'></center></pre></bdo></b><th id='D30Cj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='D30Cj'><tfoot id='D30Cj'></tfoot><dl id='D30Cj'><fieldset id='D30Cj'></fieldset></dl></div>

                        <tfoot id='D30Cj'></tfoot>
                      • <small id='D30Cj'></small><noframes id='D30Cj'>

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

                            主站蜘蛛池模板: 91精品国产91久久久久久最新 | 日本福利视频 | 麻豆国产一区二区三区四区 | 成人免费在线网 | 国产精品久久久久久久久久久免费看 | 国产精品久久久久不卡 | 午夜丰满寂寞少妇精品 | 99热这里有精品 | 久久不卡| av乱码| av手机在线免费观看 | 亚洲二区在线 | av一区二区三区在线观看 | 欧美黄视频| 欧洲亚洲视频 | 日韩黄| 国产精品久久久久久久免费大片 | 色爱区综合 | 中文字幕亚洲欧美日韩在线不卡 | 日本黄色短片 | 日本大香伊一区二区三区 | 成人影院午夜 | 国产精品久久亚洲 | 台湾av在线 | 成人 在线 | 久久久91精品国产一区二区三区 | 亚洲天堂免费在线 | 黄色片视频网站 | 色妞av| www国产成人免费观看视频,深夜成人网 | 最新国产福利在线 | 日韩精品一区二区三区 | 日韩一区二区三区在线看 | 伊人网伊人网 | 国产成人免费视频网站高清观看视频 | 国产美女黄色片 | 人人爽人人爽人人片av | 久久www免费人成看片高清 | 国产精品免费观看视频 | 欧美日韩国产一区二区三区 | 午夜精品|