#app system not responding with modal

1 messages · Page 1 of 1 (latest)

cerulean ginkgo
#

so i finished my app system and it worked great (in my test server). i tested it a bunch and ensured everything worked as it was supposed to and it did, so i committed my code and added it to my vps, but when i tried it in my actual server, it doesn't work. i used *sample and it showed the sample embed with the dropdown and the correct options, but when i selected an option, it just displayed what was in the screenshot when it's supposed to display a modal.

the video recording is how it's supposed to work. i also added print statements

app.py: https://pastes.dev/tD6e5xN0sA
sample.py: https://pastes.dev/eAfC7zACKz

the only thing that printed was this: "Select menu triggered with: Event Host" when i selected the event host option

#

oh and in the recording it works so it printed this:

Approve button clicked
Target user: st1xkz
Role: Event Host
Acceptance message: {'title': 'Congratulations! Your Event Host Application has been Approved!', 'description': "\nHello {user},\n\nWe're thrilled to inform you that your application for the Event Host role has been approved! 🎉\n            ", 'fields': [{'name': 'What to Expect:', 'value': "\n- You'll receive the **Event Host** role shortly, granting you access to event planning channels and permissions.\n- Our team will provide you with all the necessary tools and guidance to host engaging events for the community.\n"}, {'name': 'Next Steps:', 'value': "\n- Be ready to plan and execute amazing events that bring joy to our members.\n- If you have any questions or need support, feel free to contact our staff team.\n\nWe look forward to seeing the fantastic events you'll create!\n\nBest,\nSage Events Team\n"}]}
open mountain
#

so your app.py doesn't contain any listeners for messages, but your sample.py never actually returns a modal... its doing exactly what your code you posted should do...

#

line 36 on your sample.py is what its sending.

#

it never sends a modal, and your other one has to be different.

cerulean ginkgo
#

sample.py isn’t supposed to send modals anyways, it’s only supposed to display the select menu and sample embed. app.py handles all of that. You see in sample.py and app.py, they both share an app_roles custom id and same labels for the options.

My issue is that the system works fine in my test server but when I bring it over to my vps, it stops working

#

I also added a print statement inside the modal (app.py) to see if it gets triggered and this is what it outputs when I try from my test server

#

This is what it outputs when I try from the vps in my main server

#

I also ensured I pulled after updating the GitHub repo

#

I did this

git fetch origin main
git reset --hard FETCH_HEAD
open mountain
#
  1. I still don't see any reason for a modal to pop up, like at all. I don't understand how your example is even working.

  2. Please do not use open() in hikari, its blocking, and bad to use.

#
modal = MyModal()
await ctx.respond_with_modal(modal)

Like I never see this call, which means it simply is never actually getting sent anywhere.

cerulean ginkgo
open mountain
#

1 second

cerulean ginkgo
#

nvm im just dumb

open mountain
#

your welcome to ping me again. I must've forgotten 😭

cerulean ginkgo
#

its okay

#

ty for the help

cerulean ginkgo