duck
DIAdiscord.js - Imagine an app
•Created by Skaidus on 4/1/2025 in #djs-questions
Discord SKU ID errors
Generally we prefer you don't crosspost as mentioned in #rules 4, but I see the question was left slightly open ended, so I suppose you're free to continue discussing it here
However I personally feel it's probably better not to repost someone else's question for them (especially without even asking) since it prevents them from marking the post as solved when they're done
6 replies
DIAdiscord.js - Imagine an app
•Created by ԹՄՏԵɿՌ on 4/1/2025 in #djs-questions
Error deploying commands following the JS guide
Sounds like an invalid application id
6 replies
DIAdiscord.js - Imagine an app
•Created by musty on 3/22/2025 in #djs-questions
Issue with Node.js
that still depends on you
again, you may want to consider looking up the difference between cjs and esm and how to switch
9 replies
DIAdiscord.js - Imagine an app
•Created by musty on 3/22/2025 in #djs-questions
Issue with Node.js
that's entirely up to you
you may want to consider looking up the difference between cjs and esm and how to switch
9 replies
DIAdiscord.js - Imagine an app
•Created by musty on 3/22/2025 in #djs-questions
Issue with Node.js
this isn't really discord.js related, but sounds like that 'tiny tweak' in your code included switching from cjs to esm (presumably by specifying
"type": "module"
in your package.json)9 replies
DIAdiscord.js - Imagine an app
•Created by Nano Chad on 3/17/2025 in #djs-questions
Unable to run code in production, code isnt running after build
your error message seems straightforward enough
furthermore reading directories isn't really something you do with discord.js, so this seems better suited to #other-js-ts
5 replies
DIAdiscord.js - Imagine an app
•Created by ElJay on 3/17/2025 in #djs-questions
Which errors does discord.js handle and which does it let bubble up?
and to address something from your previous messages, I'd just like to clarify
op codes aren't error codes
I can at least understand your considering close codes to be error codes, but op codes shouldn't be considered errors
furthermore the aforementioned "Invalid session" is documented to be a sign for your bot to reconnect, so it falls under "handled reconnect" as above
128 replies
DIAdiscord.js - Imagine an app
•Created by ElJay on 3/17/2025 in #djs-questions
Which errors does discord.js handle and which does it let bubble up?
in terms of ws close codes, I imagine djs will handle any reconnectable close codes for you and emits
error
for non-reconnectable ones (with unexpected close codes being considered reconnectable by default)
you could of course parse the debug
event if you really wanted to detect those
I believe rate limits are the only rest errors djs handles for you, but I'm not totally sure on that
furthermore this behavior can be controlled from the client's rest
options128 replies
DIAdiscord.js - Imagine an app
•Created by Vico on 3/17/2025 in #djs-questions
How can i check if a message have an attachment?
that is a method, so assuming you call it, sure
10 replies
DIAdiscord.js - Imagine an app
•Created by Vico on 3/17/2025 in #djs-questions
How can i check if a message have an attachment?
sure
10 replies
DIAdiscord.js - Imagine an app
•Created by Vico on 3/17/2025 in #djs-questions
How can i check if a message have an attachment?
you can check
<Message>.attachments.size
to check if there's an attachment since attachments
is a Collection
to determine whether a given Attachment
is a text file, you'd probably need to check <Attachment>.contentType
10 replies
DIAdiscord.js - Imagine an app
•Created by Yungz on 3/1/2025 in #djs-questions
Discord bot ( im new to coding bots)
personally I also consider this a gray area
"I'll take the tos violations out later" doesn't really prove anything in the way of whether you'll actually do so
or even if you do so, whether you'll just add it back in afterwards
53 replies
DIAdiscord.js - Imagine an app
•Created by Yungz on 3/1/2025 in #djs-questions
Discord bot ( im new to coding bots)
this repo appears to contain a few tos violations (e.g. streaming from youtube/spotify)
we do not support tos violations
53 replies
DIAdiscord.js - Imagine an app
•Created by Yungz on 3/1/2025 in #djs-questions
Discord bot ( im new to coding bots)
they were saying that's the only thing that does work, so I imagine they've already done that
53 replies
DIAdiscord.js - Imagine an app
•Created by Yungz on 3/1/2025 in #djs-questions
Discord bot ( im new to coding bots)
it'll be hard to help without at least knowing what you want it to do or sharing the code itself and describing in what way it doesn't behave correctly
53 replies
DIAdiscord.js - Imagine an app
•Created by P H O E T A N I X on 2/26/2025 in #djs-questions
Buttons instantly disappear after using slash command
Yes
As I mentioned in my first message
interaction
is your slash command interaction113 replies
DIAdiscord.js - Imagine an app
•Created by P H O E T A N I X on 2/26/2025 in #djs-questions
Buttons instantly disappear after using slash command
which is to say where do you handle what your collector
collect
s?113 replies
DIAdiscord.js - Imagine an app
•Created by P H O E T A N I X on 2/26/2025 in #djs-questions
Buttons instantly disappear after using slash command
this isn't about your filter, so there isn't a "left" or "right" interaction here
what variable contains your button interaction?
113 replies
DIAdiscord.js - Imagine an app
•Created by P H O E T A N I X on 2/26/2025 in #djs-questions
Buttons instantly disappear after using slash command
and furthermore, should the modal be shown after you handle the response to the modal?
113 replies