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

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

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

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

        <tfoot id='mDzOR'></tfoot>

        我需要幫助在 discord py 中創(chuàng)建 discord py temp 靜音命

        I need help making a discord py temp mute command in discord py(我需要幫助在 discord py 中創(chuàng)建 discord py temp 靜音命令)

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

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

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

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

                  本文介紹了我需要幫助在 discord py 中創(chuàng)建 discord py temp 靜音命令的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  I got my discord bot to have a mute command but you have to unmute the user yourself at a later time, I want to have another command called "tempmute" that mutes a member for a certain number of minutes/hours/ or days, this is my code so far, how would I make a temp mute command out of this?

                  #mute command 
                  @client.command()
                  @commands.has_permissions(kick_members=True)
                  async def mute(ctx, member: discord.Member=None):
                      if not member:
                          await ctx.send("Who do you want me to mute?")
                          return
                      role = discord.utils.get(ctx.guild.roles, name="muted")
                      await member.add_roles(role)
                      await ctx.send("ok I did it")
                  

                  解決方案

                  Similar to how you gave them a role to mute them, just add another parameter to take in how long you want them to be muted in seconds. Then you can use await asyncio.sleep(mute_time) before removing that role.

                  The code will look something like:

                  import asyncio
                  
                  #mute command 
                  @client.command()
                  @commands.has_permissions(kick_members=True)
                  async def mute(ctx, member: discord.Member=None, mute_time : int):
                      if not member:
                          await ctx.send("Who do you want me to mute?")
                          return
                      role = discord.utils.get(ctx.guild.roles, name="muted")
                      await member.add_roles(role)
                      await ctx.send("ok I did it")
                  
                      await asyncio.sleep(mute_time)
                      await member.remove_roles(role)
                      await ctx.send("ok times up")
                  
                  

                  這篇關(guān)于我需要幫助在 discord py 中創(chuàng)建 discord py temp 靜音命令的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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?(如何制作一個(gè)在 Python 中提供角色的不和諧機(jī)器人?)
                  Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動(dòng)更改角色顏色)

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

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

                      • <legend id='vh9Mn'><style id='vh9Mn'><dir id='vh9Mn'><q id='vh9Mn'></q></dir></style></legend>
                          <tfoot id='vh9Mn'></tfoot>

                            主站蜘蛛池模板: 亚洲精品成人网 | 视频在线一区二区 | 国产电影一区二区 | 丝袜 亚洲 另类 欧美 综合 | 国产精品亚洲精品 | 中文字幕在线二区 | 国产高清精品一区二区三区 | 欧美一区二区三区精品免费 | 免费不卡av | 7777在线视频免费播放 | 久草在线 | 欧美一级久久久猛烈a大片 日韩av免费在线观看 | 成人精品国产 | 毛片1| 成人黄色av网址 | 国产一区二区观看 | 日韩精品久久一区二区三区 | 999视频在线播放 | 天天干天天草 | 日本一区二区不卡视频 | 日韩av在线一区 | 欧美日韩网站 | 日本成人片在线观看 | 欧美视频xxx | 视频一区中文字幕 | 亚洲天堂二区 | 亚洲免费在线视频 | 欧美区日韩区 | www.狠狠干| a在线视频 | 欧美中文字幕一区 | 91中文视频 | 亚洲综合大片69999 | 亚洲国产成人av好男人在线观看 | 亚洲人人舔人人 | 国产精品三级久久久久久电影 | 男人天堂99| 久久精品久久久久久 | 高清久久久 | 久久夜视频| 男女网站免费 |