_iamelite
_iamelite
DIAdiscord.js - Imagine an app
Created by _iamelite on 9/1/2023 in #djs-questions
going back to previous embed
hope this makes you understand what i want
if(messagecreate event){
check if the message created has word "a" or "b";
if(yes) send embed1 with 'paycomp' button;
if(no) send selectmenu{
send list of letters, "c", "d"....
}
}
if(interactioncreate event is selectmenu){
send the list of menus;
send embed2 with 'paycomp' button;
}
if(interactioncreate event is button){
if(button = paycomp){
send embedBeta with 'go back' button;
}
if(button = go back){
//it needs to go to previous embed
}
}
if(messagecreate event){
check if the message created has word "a" or "b";
if(yes) send embed1 with 'paycomp' button;
if(no) send selectmenu{
send list of letters, "c", "d"....
}
}
if(interactioncreate event is selectmenu){
send the list of menus;
send embed2 with 'paycomp' button;
}
if(interactioncreate event is button){
if(button = paycomp){
send embedBeta with 'go back' button;
}
if(button = go back){
//it needs to go to previous embed
}
}
4 replies
DIAdiscord.js - Imagine an app
Created by _iamelite on 9/1/2023 in #djs-questions
going back to previous embed
note that all embeds are different, but payment complete and goback button have only 1 custom ID each, meaning same button of same cID is given
4 replies