@bot.event
async def on_button_click(inter, role: discord.Role):
await inter.respond(type=6)
res = 'Вы успешно верифицировались!' # ваш вывод сообщение что человек получил роль
guild = bot.get_guild(inter.guild.id)
if inter.component.id == "verif_button":
verif = guild.get_role(911731057253040168)
member = inter.author
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)
if inter.component.id == "1_button":
verif = guild.get_role(918176069893369877)
member = inter.author
role = guild.remove_role(918187834396000318, 918187829861969992)
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)
await bot.delete_role(role.server, role)
if inter.component.id == "2_button":
verif = guild.get_role(918176099840704533)
member = inter.author
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)
if inter.component.id == "3_button":
verif = guild.get_role(918187820017926166)
member = inter.author
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)
if inter.component.id == "4_button":
verif = guild.get_role(918187829861969992)
member = inter.author
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)
if inter.component.id == "5_button":
verif = guild.get_role(918187834396000318)
member = inter.author
await member.add_roles(verif)
await inter.reply(res, ephemeral = True)