0

@bot.command(pass_context=True)

async def kill(ctx, member: discord.Member, *, reason = None):

await ctx.send('{member.mention} 🔫 {}'.format(ctx.message.author.mention))

await  ctx.message.delete()

Ошибка:

discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'member'

1 ответ 1

0
@bot.command(pass_context=True)
async def kill(ctx, member: discord.Member, *, reason = None):
    await ctx.send(f'{member.mention} 🔫 {ctx.author.mention}')
    await ctx.message.delete()
1

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.