Lipton
Lipton
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
thanks a lot^^
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
and i will definetely try this
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
its fixed now
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
okay you were right
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
yeah im starting to think this may not be the optimal solution
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
actually wouldnt i have to do that every time i dm someone, so the system doesnt break
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
should i delete the channel after every interaction.user.send(…)?
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
i tried it before and it didnt help lol
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
in the function
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
?
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
so i should
await channel.delete();
return userapp;
await channel.delete();
return userapp;
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
(i think im gonna paste B onto pastebin or something because its a lengthy eyesore)
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
once i finish or cancel i will be able to execute it again
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
i know, but it doesnt cause any problems. I can execute command A, the function will start and the bot will begin asking me questions on DM's, and if i try to execute command A before finishing or cancelling the first questioning, the program wont let me
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
command A
case 'server':{

const funkcja = require("../../library/questioning");

questions = [`A`,`B`,`C`];

funkcja(interaction, questions).then((answers)=>{

let query = 'INSERT INTO servers VALUES (?);';
let values = [answers[0], answers[1], answers[5], answers[3], answers[2], answers[4]];

database.query(query, [values], (err, rows, fields) => {
if (err) console.log(err);
});

return interaction.user.send(`Success. Server ${answers[0]} has been registered in the database.`);

})
.catch((error)=>{
console.log(error);
})
break;
}
case 'server':{

const funkcja = require("../../library/questioning");

questions = [`A`,`B`,`C`];

funkcja(interaction, questions).then((answers)=>{

let query = 'INSERT INTO servers VALUES (?);';
let values = [answers[0], answers[1], answers[5], answers[3], answers[2], answers[4]];

database.query(query, [values], (err, rows, fields) => {
if (err) console.log(err);
});

return interaction.user.send(`Success. Server ${answers[0]} has been registered in the database.`);

})
.catch((error)=>{
console.log(error);
})
break;
}
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
i just removed it here xd
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
it points to the previously used channel
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
i have
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
yes
37 replies
DIAdiscord.js - Imagine an app
Created by Lipton on 7/17/2023 in #djs-questions
extremeley weird issue with closing DM's between bot and user
what about the actual issue though
37 replies