Code Monkey home page Code Monkey logo

Comments (11)

Mateo-tem avatar Mateo-tem commented on May 28, 2024

but it works?

from discord-modals.

Luncaaa avatar Luncaaa commented on May 28, 2024

What do you mean?

When I first run the command, the modal.reply(${dia} ... ${accion} ... ${cosas}); message is sent correctly. If I run it a second time, the message is also sent but the bot turns off with the error I sent and I need to turn it on again

from discord-modals.

Mateo-tem avatar Mateo-tem commented on May 28, 2024

in the second time, it gives you an error that says 'La aplicación no ha respondido' or 'The application did not respond'?

from discord-modals.

Luncaaa avatar Luncaaa commented on May 28, 2024

Nope, the message is sent but the error DiscordAPIError: Interaction has already been acknowledged. appears on console
(No errors inside the Discord App, just on the command line)

from discord-modals.

Mateo-tem avatar Mateo-tem commented on May 28, 2024

Nono, I mean on the Discord Application.

from discord-modals.

Luncaaa avatar Luncaaa commented on May 28, 2024

Yeah, I understood, there are no errors there

from discord-modals.

Mateo-tem avatar Mateo-tem commented on May 28, 2024

Sure? Or appears an error in the modal, like 'Algo ha salido mal' or 'Something went wrong'?

from discord-modals.

Luncaaa avatar Luncaaa commented on May 28, 2024

Yeah. In the video it does not appear but when I ran the 1st command, I opened the command promt to show that there were no errors and when I ran the command for the 2nd time, I opened it again to show that the error was there.
VIDEO: https://drive.google.com/file/d/1pKgRWplLK_XeWZAyChpEX4Vd30fv553n/view?usp=sharing
WHOLE CODE: https://pastebin.com/h6enTbkp (file)

from discord-modals.

jebe22 avatar jebe22 commented on May 28, 2024

You should remove your client.on modalSubmit from the slash command and put it somewhere else (index.js for example), this should most likely fix your problem

from discord-modals.

Luncaaa avatar Luncaaa commented on May 28, 2024

That fixed it!
Thank you so much :)

from discord-modals.

Mateo-tem avatar Mateo-tem commented on May 28, 2024

Good!

from discord-modals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.