Git Product home page Git Product logo

Comments (5)

Jiralite avatar Jiralite commented on May 25, 2024

I cannot reproduce this issue. My code sample is actually simply copied from the version 13 guide.

Moreover, this seems to be impossible. This method is referenced in one place only:

/**
* The inputs within the modal
* @type {PartialModalActionRow[]}
*/
this.components =
data.data.components?.map(c => ({
type: MessageComponentTypes[c.type],
components: ModalSubmitInteraction.transformComponent(c),
})) ?? [];

c is raw data, so custom_id is the correct property to use.


The more likely scenario is you are doing something incorrectly or the internal behaviour of discord.js has been edited (especially since this has not changed since implementation and no one has complained).

from discord.js.

KasaiKonoru avatar KasaiKonoru commented on May 25, 2024

ok thanks. But many people in the discord server have this issue. I reinstalled discord v13 and used a new bot with the guide copied and pasted. But I always get the same error

from discord.js.

KasaiKonoru avatar KasaiKonoru commented on May 25, 2024

the textinput was only logged without error when I modified c.custom_id to c.customId

from discord.js.

Jiralite avatar Jiralite commented on May 25, 2024

But many people in the discord server have this issue.

I have a hard time believing that, considering modal support was added over a year ago, I cannot reproduce this, and this code has been untouched. Care to link these many people in the server?

from discord.js.

Jiralite avatar Jiralite commented on May 25, 2024

From Discord, it was found that the reporter had a third-party package installed which modified the internal behaviour of discord.js resulting in this error (posting for transparency).

from discord.js.

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.