#Passing data to next interaction without individual collectors?

1 messages · Page 1 of 1 (latest)

slim field

As far as I've understood discord.js you can either use a global event interactionCreate listener or you'd create individual collectors and handle the responses in-function.

Now in theory I quite like the global listener approach, problem is each interaction runs in a vacuum and there's no persistence of data between interactions. It seems I'm forced to create individual collectors if I want to create an interaction chain/ flow.

So my questions are,** is there any way to pass data to the next interaction using a global listener?**

and if there is not, is there any way to run both a global listener and individual collectors without Discord complaining that the interaction failed when the interaction wasn't acknowledged by both approaches?