d.js docs
d.js docs
DIdiscord.js - Imagine ❄
Created by tamarok on 1/18/2025 in #djs-questions
Listing entries in a ForumChannel?
:method: GuildForumThreadManager#fetchActive() [email protected] Obtains all active threads in the channel.
6 replies
DIdiscord.js - Imagine ❄
Created by tamarok on 1/18/2025 in #djs-questions
Listing entries in a ForumChannel?
:method: GuildForumThreadManager#fetch() [email protected] Obtains a thread from Discord, or the channel cache if it's already available.
// Fetch a thread by its id
channel.threads.fetch('831955138126104859')
.then(channel => console.log(channel.name))
.catch(console.error);
// Fetch a thread by its id
channel.threads.fetch('831955138126104859')
.then(channel => console.log(channel.name))
.catch(console.error);
6 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/17/2025 in #djs-questions
ERROR
:guide: Home: Introduction read more
27 replies
DIdiscord.js - Imagine ❄
Created by Michel Migalov on 1/17/2025 in #djs-questions
Embed generator
guide suggestion for @Michel Migalov: :guide: Additional Features: Reloading Commands read more
4 replies
DIdiscord.js - Imagine ❄
Created by Kbone22 on 1/17/2025 in #djs-questions
How to limit visibililty of Slash Commands
:guide: Creating Your Bot: Registering slash commands - Guild commands read more
6 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/16/2025 in #djs-questions
My bot command not showing up but bot is online here is how it looks like
:guide: Slash Commands: Slash command permissions read more
42 replies
DIdiscord.js - Imagine ❄
Created by Noah; on 1/17/2025 in #djs-questions
quick question about caching in djs
:guide: Miscellaneous: Cache customization read more
9 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/16/2025 in #djs-questions
My bot command not showing up but bot is online here is how it looks like
:guide: Creating Your Bot: Command handling read more
42 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/16/2025 in #djs-questions
My bot command not showing up but bot is online here is how it looks like
:guide: Creating Your Bot: Registering slash commands read more
42 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/16/2025 in #djs-questions
My bot command not showing up but bot is online here is how it looks like
:guide: Creating Your Bot: Creating slash commands read more
42 replies
DIdiscord.js - Imagine ❄
Created by AGS on 1/16/2025 in #djs-questions
My bot command not showing up but bot is online here is how it looks like
:guide: Home: Introduction - Before you begin... read more
42 replies
DIdiscord.js - Imagine ❄
Created by ChainsawXIV on 1/16/2025 in #djs-questions
messageCreate isn't firing
If you aren't getting any errors, try to place console.log checkpoints throughout your code to find out where execution stops. - Once you do, log relevant values and if-conditions - More sophisticated debugging methods are breakpoints and runtime inspections: learn more
25 replies
DIdiscord.js - Imagine ❄
Created by vezziee on 1/16/2025 in #djs-questions
how to get this gray border thing around the dates
Message formatting (mentions, timestamps, emoji, etc.): learn more
7 replies
DIdiscord.js - Imagine ❄
Created by vezziee on 1/16/2025 in #djs-questions
how to get this gray border thing around the dates
Codeblocks: ```js const Discord = require("discord.js"); // further code ``` becomes
const Discord = require("discord.js");
// further code
const Discord = require("discord.js");
// further code
Inline Code: `console.log('inline!');` becomes console.log('inline!');
7 replies
DIdiscord.js - Imagine ❄
Created by LukeZ on 1/14/2025 in #djs-questions
Message cannot be edited
:mdn: Object.assign() The Object.assign() static method copies all enumerable own properties from one or more source objects to a target object. It returns the modified target object.
31 replies
DIdiscord.js - Imagine ❄
Created by 변상훈 on 1/14/2025 in #djs-questions
When my bot receives DMs:
:guide: Popular Topics: Partial Structures read more
7 replies
DIdiscord.js - Imagine ❄
Created by Teixeira on 1/13/2025 in #djs-questions
`ModalBuilder` validation error
discord.js includes multiple sub-packages, installing these separately can mess with internal code:
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
7 replies
DIdiscord.js - Imagine ❄
Created by leafisnothere on 1/13/2025 in #djs-questions
Getting a user’s Discord AvatarURL
documentation suggestion for @leafisnothere: :method: User#displayAvatarURL() [email protected] A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.
4 replies
DIdiscord.js - Imagine ❄
Created by Malyi on 1/12/2025 in #djs-questions
Discord Activity
tag suggestion for @KokuraNobuto: Explaining <Class> and Class#method notation: learn more
13 replies