【发布时间】:2022-01-23 21:18:59
【问题描述】:
我正在尝试在一个频道中禁用该命令,但该命令仍然有效。
@bot.command()
async def test(ctx):
if ctx.message.channel.id != '923252963105976341':
await ctx.send('Test')
elif ctx.message.channel.id == '923252963105976341':
pass
【问题讨论】:
标签: python discord.py