d.js docs
DIAdiscord.js - Imagine a boo! π»
β’Created by Lukas on 10/17/2024 in #djs-questions
Missing Access Error when updating Guild Features
32 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by Izzibaby on 10/17/2024 in #djs-questions
DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
19 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by [GF]Acequail on 10/15/2024 in #djs-questions
Learning sources
4 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by ; type on 10/15/2024 in #djs-questions
how to remove watch button from streams and put in your discord rpc buttons for ur discord bot?
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
85 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by cinnamew βΏ on 10/15/2024 in #djs-questions
Trying to create a transcript
Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds β defer the response *.
- Wrong interaction object inside a collector.
- Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
* Note: you cannot defer modal or autocomplete value responses4 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by fedpep on 10/14/2024 in #djs-questions
How can I get an array of all the posts in a forum?
:method: ThreadChannel#fetchStarterMessage()
@14.16.3
Fetches the message that started this thread, if any. The Promise will reject if the original message in a forum post is deleted or when the original message in the parent channel is deleted. If you just need the id of that message, use id instead.25 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by fedpep on 10/14/2024 in #djs-questions
How can I get an array of all the posts in a forum?
25 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by fedpep on 10/14/2024 in #djs-questions
How can I get an array of all the posts in a forum?
:method: GuildForumThreadManager#fetchArchived()
@14.16.3
Obtains a set of archived threads from Discord. This method requires the PermissionFlagsBits.ReadMessageHistory permission in the parent channel.25 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by fedpep on 10/14/2024 in #djs-questions
How can I get an array of all the posts in a forum?
Resources to understand Promise:
- MDN: learn more
- Guide: learn more
- JavaScript info: learn more
25 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by fedpep on 10/14/2024 in #djs-questions
How can I get an array of all the posts in a forum?
25 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by Eselfins on 10/14/2024 in #djs-questions
Activity isn`t showing
10 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by Shrewd π« on 10/14/2024 in #djs-questions
bot's activity status
HTTP-only applications receive interactions through HTTP webhooks instead of the Discord Gateway. Bots that are not connected to the Gateway, but use HTTP interactions appear as online without a status. Discord.js does not support HTTP interactions. Use discord-interactions instead.
4 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by LukeZ on 10/13/2024 in #djs-questions
How to handle HTTP errors?
33 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by ZELDOX on 10/13/2024 in #djs-questions
emoji undefined
Message formatting (mentions, timestamps, emoji, etc.): learn more
41 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by Nab Heyka on 10/13/2024 in #djs-questions
permissionOverwrites on a new channel
26 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by ./u.7-z on 10/13/2024 in #djs-questions
I have an error but the message is sent
Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds β defer the response *.
- Wrong interaction object inside a collector.
- Two processes handling the same command (the first consumes the interaction, so it won't be valid for the other instance)
* Note: you cannot defer modal or autocomplete value responses6 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by SpecialNuggets on 10/13/2024 in #djs-voice
member.voice.channelId undefined on client ready.
8 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by SpecialNuggets on 10/13/2024 in #djs-voice
member.voice.channelId undefined on client ready.
8 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by NemesisClaus on 10/12/2024 in #djs-questions
properties of reset_after is undefined
:discord: Rate Limits
Per-route rate limits exist for many individual endpoints, and may include the HTTP method (GET, POST, PUT, or DELETE). In some cases, per-route limits will be shared across a set of similar endpoints, indicated in the X-RateLimit-Bucket header. It's recommended to use this header as a unique for...
Rate limits exist across Discord's APIs to prevent spam, abuse, and service overload. Limits are applied to individual bots and users both on a per-route basis and globally. Individuals are determined using a request's authenticationβfor example, a bot token for a bot.
read more
21 replies
DIAdiscord.js - Imagine a boo! π»
β’Created by 0fficerSally on 10/12/2024 in #djs-questions
Command Handling With TypeScript
We highly recommend you extend the
Client
structure properly instead of just attaching custom properties like .commands
to the regular discord.js Client
instance.
- Using typescript, you might want to consider casting or augmenting the module type9 replies