【发布时间】:2020-12-21 04:41:22
【问题描述】:
我有这段代码:
from discord.ext import commands
@bot.command()
@commands.max_concurrency(1,per=commands.BucketType.default,wait=False)
async def function(ctx,arg1,arg2,arg3):
max_concurrency() 可以工作,但是当达到最大并发时,我希望它向作者发送一条消息,说机器人很忙,我尝试了MaxConcurrencyReached 异常句柄,但它根本没有工作,有人知道如何使用此命令吗?
【问题讨论】:
标签: python discord discord.py