问题描述
我正在使用3.8.6版的Python ....我想给discord bot静音命令...但是代码不起作用...
不起作用
@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)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)