Mark
DIAdiscord.js - Imagine an app
•Created by ! Maachado on 2/2/2025 in #djs-questions
Seeking a Solution for Discord Rate Limit Issues on a VPS Running 160 Bots
You will use any developer credentials (such as your Application ID, passwords, keys, tokens, and client secrets) we assign to you solely with your Application and the applicable APIs (and will not permit or enable any other Application to use them) and will treat them as Discord confidential information (as described below). Without limiting the foregoing, you will keep API keys and tokens encrypted in any files or other materials accessible by third parties (other than your Service Providers, subject to Section 12(a)). For the avoidance of doubt, developer credentials may not be embedded in open source projects.From the developer TOS
28 replies
DIAdiscord.js - Imagine an app
•Created by 𝖗𝖚𝖒𝖎𝖟 on 2/2/2025 in #djs-questions
how do i make my bot have a status?
Please do not cross post, you were answered in the main support channel
4 replies
DIAdiscord.js - Imagine an app
•Created by ! Maachado on 2/2/2025 in #djs-questions
Seeking a Solution for Discord Rate Limit Issues on a VPS Running 160 Bots
Violates the TOS afaik
28 replies
DIAdiscord.js - Imagine an app
•Created by Lawa on 1/27/2025 in #djs-questions
Shard Broadcast
Pretty sure that exporting from within an event listener isn't gonna work correctly. That being said, if you need to find a guild/channel on a shard to do something with like adding a follower, you need to use bEval and do the API request inside that function
9 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
If the permissions are the same for each role, then you can just define the array as a constant and reference that
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
And one large array for one API request is better than several smaller arrays over multiple requests
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
That's immaterial, it's just code
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
if it's for a channel you're creating, yes, you can pass all of the desired overwrites during the create request
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
you should also do one api request to modify the channel's permission overwrites for all desired roles/users at once, instead of multiple api requests (which might also have unintended results due to race conditions)
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
snowflakes are larger than the max safe int in js, so they end up getting rounded if you convert them to a number. don't do that
35 replies
DIAdiscord.js - Imagine an app
•Created by Unicorn. on 1/21/2025 in #djs-questions
Role cache get undefined
those are numbers, not strings. snowflakes are strings
35 replies
DIAdiscord.js - Imagine an app
•Created by chase on 1/21/2025 in #djs-questions
Latency off drastically
You're comparing the system time to the discord server time, shouldn't be surprised to have differences
4 replies
DIAdiscord.js - Imagine an app
•Created by vez on 1/16/2025 in #djs-questions
how to get this gray border thing around the dates
use backticks `
7 replies
DIAdiscord.js - Imagine an app
•Created by Bot Father on 1/16/2025 in #djs-questions
Deno vs Bun vs Node
This is an opinion and you could get many different answers, and most of it isn't related to d.js (if any of it is). You might want to ask in a general programming server for opinions
d.js was designed for node, but it does have compatibility with bun and deno (if they don't break things)
6 replies
DIAdiscord.js - Imagine an app
•Created by JAMPERR7 on 1/9/2025 in #djs-questions
Events that execute activities
that's nothing that's to do with d.js
8 replies
DIAdiscord.js - Imagine an app
•Created by JAMPERR7 on 1/9/2025 in #djs-questions
Events that execute activities
i'm fairly certain the api doesn't have any information about the activities
8 replies
DIAdiscord.js - Imagine an app
•Created by NP on 1/5/2025 in #djs-questions
Shards and presence
Not in d.js, as it's implemented via other packages. Check out node-cron iirc
5 replies
DIAdiscord.js - Imagine an app
•Created by NP on 1/5/2025 in #djs-questions
Shards and presence
Use a cron job
5 replies
DIAdiscord.js - Imagine an app
•Created by wacuus on 1/4/2025 in #djs-questions
My embed doenst work #embeds
We do not offer support for older versions, including v12
15 replies