Creeper
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/27/2024 in #djs-questions
http to discord js type
was able to figure it out. i extended the base interaction class thanks
10 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/27/2024 in #djs-questions
http to discord js type
its a node environment. i'm able to create an instance of the client on the request. i have the token from the http request. i can destroy it after
10 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/27/2024 in #djs-questions
http to discord js type
i would have to re write every single call and fetch request into the discord endpoint and there is alot. if i could simply make an interaction object and pass the token then i wouldn't have to deal with that
10 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/27/2024 in #djs-questions
http to discord js type
im in a unique situation where i need to spin it up from a serverless function so i have an http payload of the interaction but my base code is with discordjs api so the best option would be to make a djs interaction
10 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/8/2024 in #djs-questions
channel fetch
Wow thanks
7 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 8/8/2024 in #djs-questions
channel fetch
So if I wanted to fetch last 100 messages in a channel including threads how would I check if thread messages contribute to the recent 100
7 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 7/24/2024 in #djs-questions
reply feature
Idk why they don't provide feature with that already
5 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 7/24/2024 in #djs-questions
reply feature
Rip
5 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
No it's just the default state of how it works so I think the solution is by ending the process without actually using process.exit(). kinda like blocking it
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Sometimes I'll make a commit, let's say 2 of them with 1 minute span in between then for 5+ mins there will be 3 bots logged in
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Around 5+ minutes
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Yep exactly
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
So would I have to use clear interval or is there a way to just replace the entire process with another one
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
I explained more here https://discord.com/channels/222078108977594368/869652447881207858/1039903424008966164
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
When I make a commit my hosting provider starts a new process while keeping the old one so 2 bots r in at once. I use pub sub to communicate that there is a new server and then i need to log the bot out and basically exit the process without doing process.exit() otherwise the hosting provider thinks it crashed and will restart it
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Oh I see but will clear interval stop it if it's in the middle of the call? And unref will wait till the call to stop? But when i call the method to log out the client how could I tell it to unref then because i don't want to exit the process because then hosting provider will restart it
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Or clearInterval()
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
So when i log the bot out I do that ?
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
After I log out the errors start to log from try catch and then js error that says it ran out of memory
18 replies
DIAdiscord.js - Imagine an app
•Created by Creeper on 11/9/2022 in #djs-questions
log bot out without errors
Yes there r set intervals but I'm not sure how to clear all them without exporting each individual one
18 replies