Я могу взаимодействовать с drop dawn menu(select menu)только один раз!

Пытался разобраться с select menu, вроде всё хорошо, но столкнулся с одной проблемой: после первого нажатия select menu становиться не кликабельным, т.е выбрал я категорию один раз и после этого embed не меняется.
Вот код:

from discord.ext import commands
from discord_components import Button,Select,SelectOption,ComponentsBot

import config

#set prefix
client = ComponentsBot('$')
client.remove_command('help')

@client.command()
async def help(ctx):
    page1 = discord.Embed(title = 'General Settings.', 
        description = 'Bot prefix = ' + str(config.PREFIX),color = discord.Color.green()
        )
    page1.set_thumbnail(url = ctx.guild.icon_url)
    page2 = discord.Embed(title = 'Server Settings.', 
        description = 'Bot prefix = ' + str(config.PREFIX),color = discord.Color.green()
        )
    page2.set_thumbnail(url = ctx.guild.icon_url)
    page3 = discord.Embed(title = 'Moderation Settings.', 
        description = 'Bot prefix = ' + str(config.PREFIX),color = discord.Color.green()
        )
    page3.set_thumbnail(url = ctx.guild.icon_url)
    message = await ctx.send(components = [
        Select(
            placeholder = 'Select a category!',
            options = [
              SelectOption(
                label = 'Server Settings',
                emoji = '⚙',
                description = 'Setting up a bot for the server.',
                value = '1'
              ),
              SelectOption(
                label = 'Moderation Settings',
                emoji = '?',
                description = 'Setting up server moderation.',
                value = '2'
              )
            ],
            custom_id = 'HelpSelect'
        )
    ], embed = page1)

    interaction = await client.wait_for('select_option', check = lambda inter: inter.custom_id == 'HelpSelect' and inter.user == ctx.author)
    res = interaction.values[0]
    if res == '1':
        await message.edit(embed = page2)
    if res == '2':
        await message.edit(embed = page3)


#Connect
client.run( config.TOKEN )```

Ответы (0 шт):