info in component custom id

Is it good to store some info in component's custom id? For example: I create a button with custom id: acceptInvite:1234567890123456789, where: acceptInvite - name of this button in code : - separator 1234567890123456789 - id of user who create invite Are there other ways to transfer information? When I do this, I feel like it's illegal...
4 Replies
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Булочка | pasha_boez
discord.js v14.12.1
treble/luna
treble/luna17mo ago
you can do it that way yes alternativley, if your buttons are short lived, you can use collectors
Булочка | pasha_boez
I'm afraid to use collectors because if I'm lucky and the bot restarts before the time expires, I won't even be able to tell the user about it 😦 Or you can tell method to do something like this?
Want results from more Discord servers?
Add your server