@bot.slash_command(name = 'ban')
@commands.has_role('Модератор')
async def ban(ctx. user: disnake.Member,):
role = disnake.utils.get(ctx.author.guild.roles, id = 998585218002849923)
role2 = disnake.utils.get(ctx.author.guids.roles, id = 1006847487660789820)
role3 = disnake.utils.get(ctx.author.guids.roles, id = 998585999565271070)
await user.add_roles{role2}
await user.remove_roles(role)
await user.remove_roles(role3)
await ctx.response.send_message(Пользователь был успешно забанен)