awaitMessageComponent

Hi, I'm currently building a bot but solely using interaction endpoints with express / nestjs, so I don't have a client in my project. The issue is that sometimes I need the 'awaitMessageComponent' method for messages with buttons. Is it possible to use a client without a token or a framework for interaction endpoints?
2 Replies
d.js toolkit
d.js toolkit3w 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!
William
William3w ago
I mean that I don't use a Discord client, so I can't simply do interaction.channel.createMessageComponentCollector ... because I'm using an Express server and interaction endpoints Yes, so I'm using 'discord-api-types/v10' for TypeScript types. I'm just looking for an example, if it exists, of a collector with interaction endpoints :blobreachReverse: