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

modalSubmit don't work #96

Closed
ArsamDev opened this issue Jun 9, 2022 · 14 comments
Closed

modalSubmit don't work #96

ArsamDev opened this issue Jun 9, 2022 · 14 comments

Comments

@ArsamDev
Copy link

ArsamDev commented Jun 9, 2022

No description provided.

@PabloRNC
Copy link

PabloRNC commented Jun 9, 2022

Send error

@ArsamDev
Copy link
Author

No Error but it not do anything when somebody submit a Modal

@PabloRNC
Copy link

Send Code

@idk-pixel
Copy link

Same! @ArsamDev
@PabloRNC
wont even do the first console log

  client.on('modalSubmit', (modal) => {
    console.log('something submited oooo')
    if (modal.customId == 'modal-toswarn') {
      console.log(modal.getSelectMenuValues('textinput-violation'))
    }
  })
  

@PabloRNC
Copy link

Where you have the event?

@idk-pixel
Copy link

Where you have the event?

index.js

@PabloRNC
Copy link

Mmm and the modal is shown?

@idk-pixel
Copy link

Mmm and the modal is shown?

yes.

@idk-pixel
Copy link

Mmm and the modal is shown?

yes.

https://prod.liveshare.vsengsaas.visualstudio.com/join?96E5642DCCEAB9520B88718E924B6705CCF5 pls join this

@ArsamDev
Copy link
Author

is

Hey, have you Discord?

@idk-pixel
Copy link

is

Hey, have you Discord?

yeah its WhoAboutYT#5719

@ArsamDev
Copy link
Author

Okey, i'm in the Liveshare

@ArsamDev
Copy link
Author

I have fixed it, you must init Modal
discordModals(client); // Init the event;

@ArsamDev
Copy link
Author

I have fixed it, you must init Modal discordModals(client); // Init the event;

*idk-pixel fixed it

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

3 participants