2024-09-29 19:24:14 发布
网友
如何让机器人在discord.py重写中为通道设置慢模式
discord.py
我试过这样做:ctx.channel.slowmode_delay = 10
ctx.channel.slowmode_delay = 10
它没有得到任何错误,但是当我调用上面的命令时,没有应用slowmode
我还能做什么
下面是一个示例命令:
@bot.command() async def setdelay(ctx, seconds: int): await ctx.channel.edit(slowmode_delay=seconds) await ctx.send(f"Set the slowmode delay in this channel to {seconds} seconds!")
参考文献:
下面是一个示例命令:
参考文献:
相关问题 更多 >
编程相关推荐