Kermit
DIdiscord.js - Imagine ❄
•Created by Kermit on 12/21/2024 in #djs-questions
Collectors
Hey guys , how u doin.
dont have a code issue , more of a question ( not looking for an answer in code , just some guide or link of how i can solve my problems ).
So some context about what im doin.
I got collectors in my code that after user execute a command bot dm the user and ask the user for some info , which i gather them with Collectors.
so each collector represent a step in my process.
What i was wondering was , is there a way to repeat a collector or get back in code somehow?.
This is my code ====> https://pastebin.com/cv7xrAUK
for each embed that im asking for smth im gonna add a BACK button ( starting from step two ).
and i want that back button to be like going 1 step back in the process.
so if its on the step which is asking for Description , and user press back button it goes to Title step which is the collector before description.
I also wanna add a skip button which user click it end that specific collector and get to next step , which i guess if i find a way to do the Back button i can make the other one easily.
again , im not looking for an exact code reply , just some guide on how i can achieve this
thanks in advance.
5 replies
DIdiscord.js - Imagine ❄
•Created by Kermit on 12/18/2024 in #djs-questions
Step by Step Collector
Hey guys hope u are all doing well , so here is my problem.
What im trying to achieve is an step by step process that collects data from users , so when first step is done , it goes to next step , and so on.
Im trying to achieve it by using collectors , how do i use them? , i thought that i can use nested collectors ( when i stop the step one collector i make another collector right there so it all goes nested. ).
it works somehow.
but here is the problem.
here is my code => https://pastecode.io/s/bb7k7uj5
What happens is , it goes on till it gets to the title process
i get the embed that asks me for Title , but when i respond with a message ( normal message ) nothing happens , as if my collector never gets active.
and after 60 seconds my session gets expired ( as expected ).
my Best guess is it has smth to do with my collector filter/settings?
5 replies