【发布时间】:2021-07-02 04:17:13
【问题描述】:
目前我正在使用
vouch_channel = client.get_channel(828696942250295316)
@client.command()
async def vouch(message):
async def vouch(ctx,member : discord.Member):
if ctx.author == member:
await ctx.send("You can't vouch yourself")
if message.channel.id == vouch_channel.id:
auth = ctx.author and ctx.author.mention and ctx.author.id
await open_vouches(ctx.author)
await open_vouches(member)
await update_vouches(member,+1,'vouches_gotten')
await update_vouches(ctx.author,+1,'vouches_given')
await ctx.reply(f'<:icon_checkmark:827639277285408829> {ctx.author.mention} You vouched for {member}!')
print('[LOGS] bot was used for vouch')
else:
#command attempted in non command channel - redirect user
await message.channel.send('Write this command in {}'.format(vouch_channel.mention))
尝试这样做,我尝试改变周围的东西,但没有奏效。
我真的不知道该怎么办,请帮我一下吧
我也三合会做
@client.command()
async def vouch(message,ctx,member : discord.member):
我没有做我在那里做过的事情,我也尝试过
@client.command()
async def vouch(message)(ctx,member : discord.member):
但这也没有用。
请帮帮我
【问题讨论】:
标签: python json discord discord.py