【发布时间】:2021-08-10 06:37:54
【问题描述】:
我一直在尝试设法让该命令仅在特定通道中工作,但似乎没有任何工作。我是 discord.py 的新手,所以我不太了解。
@client.command(case_sensitive=True)
async def resus(ctx,*, saymsg=None):
if saymsg==None:
return await ctx.send("To reserve a username type - !resus (your discord tag) (the username you want) (if you want verification)!")
sayEmbed = discord.Embed(title=f"{ctx.author.name} Said", color = discord.Color.blue(), description=f"{saymsg}")
sayEmbed.timestamp = ctx.message.created_at
channelf = client.get_channel(873564203535958047)
await channelf.send(embed = sayEmbed)
【问题讨论】:
标签: python python-3.x discord.py