duck
duck
DIAdiscord.js - Imagine an app
Created by Bolty on 4/22/2025 in #djs-questions
question about a function
which is to say, it's not even in reference to a specific user like <Interaction>.locale for example
8 replies
DIAdiscord.js - Imagine an app
Created by Bolty on 4/22/2025 in #djs-questions
question about a function
that's actually coming from intellisense, not copilot, and it's just an enum for the documented locales (languages) in discord
8 replies
DIAdiscord.js - Imagine an app
Created by Bolty on 4/22/2025 in #djs-questions
question about a function
it likely refers to a language, but without any info on what's being suggested for what method or object, it's hard to say for sure whether it's even giving a valid suggestion
8 replies
DIAdiscord.js - Imagine an app
Created by Phil on 4/14/2025 in #djs-questions
How to handle cancellations on individual reoccurring events?
just to elaborate from the api's perspective, a single scheduled event refers to the entire series of events, so cancelling it cancels all of them they handle events in series through a "recurrence rule" (accessible through djs from <GuildScheduledEvent>.recurrenceRule) which only determines how often the event recurs recurrence rules were only documented (and implemented in djs) within the last year, but the ability to cancel single iterations of the event recurring is recent enough that it has yet to be documented in the api djs only implements documented features, so djs does not currently support cancelling single iterations of an event
5 replies
DIAdiscord.js - Imagine an app
Created by wvn on 4/2/2025 in #djs-questions
Learn d.js
#resources lists a few hosts, but beyond that it's really up to you to decide what host you'd like to use
10 replies
DIAdiscord.js - Imagine an app
Created by wvn on 4/2/2025 in #djs-questions
Learn d.js
#resources also has similar links to the "Before you begin" section on the guide
10 replies
DIAdiscord.js - Imagine an app
Created by wvn on 4/2/2025 in #djs-questions
Learn d.js
If you're not already familiar with typescript or Javascript, I'd heavily recommend learning those first before starting
10 replies
DIAdiscord.js - Imagine an app
Created by wvn on 4/2/2025 in #djs-questions
Learn d.js
https://discordjs.guide/ The guide doesn't have code examples for typescript, but does have notes for various ts specific things throughout You're also free to check around the docs or ask here in the support channels if you're having trouble locating a type for something specific
10 replies
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
14 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 options
128 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