Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Show Modal Error (Select Menu) #113

Open
PillowPowa opened this issue Aug 17, 2022 · 10 comments
Open

Show Modal Error (Select Menu) #113

PillowPowa opened this issue Aug 17, 2022 · 10 comments

Comments

@PillowPowa
Copy link

image

Code

          const modal = new Modal()
          .setCustomId('modal-customid')
          .setTitle('Modal')
          .addComponents(
            new SelectMenuComponent()
              .setCustomId('theme')
              .setPlaceholder('What theme of Discord do you like?')
              .addOptions(
                {
                  label: 'Dark',
                  description: 'The default theme of Discord.',
                  value: 'dark',
                },
                {
                  label: 'Light',
                  description: 'Some people hate it, some people like it.',
                  value: 'light',
                },
              ),
          );

          return showModal(modal, { client, interaction });
@PillowPowa
Copy link
Author

I've been using the library for about a month, because discord.js doesn't support select menus in modals
idk what happened, I didn’t touch anything, took an example from the guide.

It seems that all the fields are correct, what should I do?

@tipakA
Copy link

tipakA commented Aug 17, 2022

Start by not using unreleased and unsupported features. Tends to help when that undocumented feature disappears.

@PillowPowa
Copy link
Author

The Dis. API version isn't dynamically updated in the library, is it statically specified?

@castdrian
Copy link

Doesn't matter, the API change rolled out, so you cannot do this anymore.

@tipakA
Copy link

tipakA commented Aug 17, 2022

is it statically specified?

Well, yes. the lib didn't change, but it didn't have to because it never explicitly supported selects in modals. Also, don't get confused. APIs tend to get updated without asking every single library and user using it to "update pls we want to change a thing", especially when the thing they are changing is not supported or even documented.

@Mateo-tem
Copy link
Owner

Unfortunately, Discord stopped allowing select menus in modal responses, I need to remove the select menus in discord-modals then. According to some people (including a Discord Developer), select menus in modals was a bug but was solved today. Also, some people say that select menus in modals are planned for the future, Nobody knows 🤷‍♂️

@Bardia-SG
Copy link

so is this problem temporary or what?

@Mateo-tem
Copy link
Owner

I don't really know, but probably yes, Discord didn't provide a date for support of select menus in modals, just they have it planified.

@Sube22
Copy link

Sube22 commented Aug 18, 2022

Any option to set a select menu into a modal? 😞

@PillowPowa
Copy link
Author

nah

Есть ли возможность установить меню выбора в модальное?😞

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants