async def wp(ctx)
получает не то, что вы ожидаете.get_channel(id, /)
Returns a channel or thread with the given ID.
Parameters
id (int) – The ID to search for.
Returns
The returned channel or None if not found.
channel.send(embed=embed)
Объект "контекст" не имеет атрибута "edit"
if counter==4:
не произойдет ничего.Ошибка при установки discord.py?да ошибка, попробуйте переводчик
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-buil...
type(some_object)
В guld_id значение должно быть меньше или равно 9223372036854775807
async def on_command_error(error, ctx):
if isinstance(error, commands.BadArgument):
await ctx.send("Запрос команды с ошибочным аргументом")
elif isinstance(error, commands.CommandNotFound):
await Client.send_message(ctx.message.channel, "Команда не найдена")
... # вставлять новые проверки сюда
else:
await Client.send_message(ctx.message.channel, "Неизвестная ошибка")
result is None and chann is not None
inviter_id будет None.inviter_id = None
if result is not None:
...
if chann:
embed = nextcord.Embed(
title='Leafy InviteLogger',
description=f'{member.mention} join the server!\n\n Invited by <@{inviter_id}>\n Total invitations {total_invites}',
colour=0x2b2d31
)
coroutine 'ApplicationContext.respond' was never awaited
ctx.respond(f'Вы уже использовали {us} из {kyp}',ephemeral=True)
await ctx.respond(embed=embedvar,ephemeral=True)
INSERT ... ON CONFLICT ... UPDATE