AccountNoLongerInUse
AccountNoLongerInUse
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
thanks
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
that seemed to work
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
im going to try putting else { interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
console.log('Nuh uh passed')
return; } in each if statement
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
correct
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
nope, it said it passed, then ran the interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
with the (almost) exact same code
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
because it did it for the other ones
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
console.log('COLOSSIANS passed') or whatever option i clicked (it doesnt run the second if statement inside it, i know, thats intentional, it worked for the past ones)
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
no, it doesnt run that if i click one of the last five options, if i do it with the others, it runs fine
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
if(interaction.values.includes('colossians')) {
console.log('COLOSSIANS passed')
if(colossiansID.includes(interaction.user.id)) {
target.send("You have been invited to The Colossians! To leave the team, run /leave").catch(error => {
console.log(error)
})
target.roles.add(colossiansRole)
return;
}
} else {
interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
console.log('Nuh uh passed')

return;
if(interaction.values.includes('colossians')) {
console.log('COLOSSIANS passed')
if(colossiansID.includes(interaction.user.id)) {
target.send("You have been invited to The Colossians! To leave the team, run /leave").catch(error => {
console.log(error)
})
target.roles.add(colossiansRole)
return;
}
} else {
interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
console.log('Nuh uh passed')

return;
yep
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
i put console.log in all the if statements, all of them sent back what it was supposed too, i did it for the code before it, everything ran fine, i dont know why the ending statement doesnt run with the last five, it should do it fine, but it doesnt
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
right here. it runs everything before that, this just doesnt run this if any of the last five if statements are clicked
29 replies
DIAdiscord.js - Imagine an app
Created by AccountNoLongerInUse on 8/10/2024 in #djs-questions
i get the "This interaction failed" error for the last five "if" statements.
did that, it doesnt run
interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
interaction.update({content: '... Really thought that would work??? You are not that Team Captain', ephemeral: true})
when i click any of the last 5
29 replies