Discord.py 使用Python 3.8.6的Discord Bot语音静音命令
我正在使用Python版本3.8.6。。。。我想给discord机器人静音命令…但是代码不起作用 不工作Discord.py 使用Python 3.8.6的Discord Bot语音静音命令,discord.py,mute,Discord.py,Mute,我正在使用Python版本3.8.6。。。。我想给discord机器人静音命令…但是代码不起作用 不工作 @commands.command() async def mute(self, ctx, member : discord.Member): try: await member.edit(mute=True) except: await ctx.send('Sorry! I cant mute this member.') --------------------
@commands.command()
async def mute(self, ctx, member : discord.Member):
try:
await member.edit(mute=True)
except:
await ctx.send('Sorry! I cant mute this member.')
-------------------------------------------------------
@commands.command()
async def mute(self, ctx):
await ctx.author.edit(mute=True)