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

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

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

    1. <legend id='WRIyu'><style id='WRIyu'><dir id='WRIyu'><q id='WRIyu'></q></dir></style></legend>

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

        <tfoot id='WRIyu'></tfoot>

        如何獲取某人帳戶的年齡?不和諧.py

        How to get the age of someones account? Discord.py(如何獲取某人帳戶的年齡?不和諧.py)
        <legend id='cUlLP'><style id='cUlLP'><dir id='cUlLP'><q id='cUlLP'></q></dir></style></legend>

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

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

                  本文介紹了如何獲取某人帳戶的年齡?不和諧.py的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  為了防止新帳戶使用某個命令,我如何在用戶鍵入消息時獲取用戶帳戶的年齡(或創建日期).

                  To prevent new accounts from using a certain command, how could I get the age of a users account (or creation date) when they type a message.

                  
                  client.get_user(account_date)
                  
                  if account_date < 14:
                     print('Your account must be older than 14 days to use this command')
                  else:
                     print('Your account can use this command')
                  

                  感謝任何幫助.

                  推薦答案

                  您可以使用 ctx.author 從 ctx 或使用 message.author.

                  You can get a User object from either ctx with ctx.author or from a message with message.author.

                  然后在 User 對象上你可以調用 created_at.

                  Then on the User object you can call created_at.

                  例如獲取當前用戶的帳號

                  So for example to get account of current user

                  @bot.command()
                  async def CreatedAccountAt(self,ctx):
                     await ctx.send(ctx.author.created_at)
                  

                  或通過 ID 獲取用戶創建日期

                  or to get a user created date by ID

                  @bot.command()
                  async def CreatedAccountAt(ctx, userId: int):
                      user =  bot.get_user(userId)
                      await ctx.send(user.created_at)
                  

                  https://discordpy.readthedocs.io/en/latest/api.html#discord.User.created_at

                  這篇關于如何獲取某人帳戶的年齡?不和諧.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 - 自動更改角色顏色)
                  <legend id='vXkjb'><style id='vXkjb'><dir id='vXkjb'><q id='vXkjb'></q></dir></style></legend>

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

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

                      <tbody id='vXkjb'></tbody>

                    • <bdo id='vXkjb'></bdo><ul id='vXkjb'></ul>
                    • <tfoot id='vXkjb'></tfoot>

                          1. 主站蜘蛛池模板: 青青草原综合久久大伊人精品 | 日日噜噜噜夜夜爽爽狠狠视频, | 国产精品久久久久久久久久免费看 | 国产精品一区二区日韩 | 自拍偷拍av | www.一级毛片 | 日韩欧美在线免费观看 | 性色综合 | 正在播放亚洲 | 亚洲综合一区二区三区 | 特黄毛片| 最新伦理片| 精品久久久久久 | 天天看天天操 | 久久久久久亚洲精品 | 国产视频h | 一区二区三区视频在线 | 一区二区三区精品在线 | 免费观看黄色一级片 | 色片在线观看 | 日韩中文字幕在线免费 | 久久99久久99久久 | 国产91丝袜在线播放 | 亚洲福利在线观看 | 一区二区精品在线 | 国产激情视频网址 | 黄色在线免费观看 | 福利国产 | 天天综合天天 | av中文在线| 欧美在线一区二区三区 | 午夜影院在线 | 国产高清精品在线 | 国产精品色一区二区三区 | 日本黄色高清视频 | 国产成人短视频在线观看 | 欧美888| 亚洲视频手机在线 | 欧美激情综合五月色丁香小说 | 久久麻豆精品 | 成人av大全|