(disnake) Почему вылазит ошибка? Вот
код:
@client.slash_command(name="ban", description="Забань участника")
@commands.has_permissions( ban_members = True )
async def ban( ctx, member, *, reason):
await ctx.guild.ban(user = member, reason = reason)
emb10 = disnake.Embed(title=f"Пользователь {member} был забанен по причине {reason}")
message = await ctx.send(embed = emb10)
Вот
ошибка:
D:\Users\-\AppData\Local\Programs\Python\Python38\lib\site-packages\disnake\ext\commands\interaction_bot_base.py:715: SyncWarning: Failed to overwrite global commands due to 400 Bad Request (error code: 50035): Invalid Form Body
In 18.options.0.description: This field is required
In 18.options.1.description: This field is required
warnings.warn(f"Failed to overwrite global commands due to {e}", SyncWarning)
Что надо переделать?