djs-questions

9202 threads · Page 5 of 185

Question regarding the behavior of Guild.fetchAuditLogs 4 messages
jolly hinge Lets say for example I listen to ``roleCreate`` event in the client, is it guranteed that the audit log entry for the ev...
1150878498534199426
I want to know about VC-Stats API 3 messages
jagged rune ```js const rest = new REST({ version: "10" }).setToken(process.env.TOKEN); await rest.put(`/channels/${channelId}/voice...
Message Attachments are empty? 44 messages
stiff nacelle Hi i'm trying to read out if a message has a image attached. I'm running the server in debug mode with vscode attached ...
Differentiate between multiple autocomplete in one slash command 6 messages
proud karma `interaction.options.getFocused()` gets me the value of the focused option. But how can I get the name of the focused op...
1150878580193116250
Upgrading older discord.js project to newest version 28 messages
vale mesa Hi guys, iam working on my discord bot now again. iam using a custom model for message because of some unnecessary pro...
1150878580193116250 998292157150535700
why is not working? 7 messages
minor sun `` client.user.setActivity('Nero Bot By RR7', { type: 'PLAYING' }); ``
Alternative syntax for gallery items 5 messages
proud karma I have this code```ts const imgs = [/* ... */]; const gallery = new MediaGalleryBuilder().addItems( imgs.map((img) ...
1150878580193116250
What are the best practices? 12 messages
drowsy ermine Using defer reply for all type of api and database calls ? Or should I use reply . Just want to figure out best user c...
hello, what do i need to do, to have on thumbnail head of minecraft skin (nick name is in the modal) 9 messages
uneven shadow the variable for nickname is ${nick1}
Improve error debugging 12 messages
proud karma As you can see in the screenshot, I have an interaction handler that runs the various handlers of my slash commands, lik...
1150878580193116250
Best practice for object cloning (in TS)? 22 messages
echo grotto Looking to get deep copies of things like EmbedBuilder. `structuredClone` doesn't copy functions. Should we be doing som...
1150878580193116250
Retrieving GuildChannel#setName ratelimit 10 messages
ivory ocean Hi, I was wondering if there's any way to tell whether I'm being ratelimited from renaming a particular channel or not w...
1150878580193116250
Are there downsides to always deferReply / deferUpdate? 6 messages
proud karma My code is starting to get littered with `await interaction.deferReply()` at the beginning of each slash command functio...
1150878580193116250
Sending deploy request 46 messages
burnt vector ✅ .env is read correctly ✅ Token, Client ID, and Guild ID are valid ✅ 44 commands are loaded correctly ✅ The REST cli...
998292157150535700
Modals 6 messages
azure sky Now that u can add Menu or AttachFile in modal's labels. How to get output of file? like how to get file that user attac...
1150878580193116250 1425536557883850804
Reply to user with decorated text based on HTML 7 messages
proud karma Hi, I'm looking for something like the opposite of `discord-html-transcripts`. I'm writing a bot that allows looking up ...
Negative timeout in @discordjs/ws 11 messages
chrome thunder Not sure if this is a possible bug in ws package, i left my development bot running overnight on my pc and saw this warn...
1150878580193116250 998292157150535700
modal select menu 56 messages
golden nova ```js const allTextChannels = interaction.guild.channels.cache.filter(c => c.type === ChannelType.GuildText || c.type ==...
Is it relevant? 16 messages
modern mulch Is this package still functioning or is it outdated? and can i use it in a browser environment with a websocket transpor...
1003448629866020986
Redis as a cache backend 10 messages
teal canopy Has anyone ever experimented with using Redis as the cache backend? I have my own experiment where I have it sort of wor...
1150878580193116250
Adding Application Emojis 4 messages
unkempt maple Is this possible that when my client gets ready I can check if my Bot has these specific Application emojis if it won't ...
Need help with editMe() (Changing bot's bio/pfp per server) 10 messages
hot hazel So I updated my discord.js version to discord.js v14.24.x so I can add a command for server admins to change's the bot's...
guild member timeout 13 messages
plain goblet I've been trying to fix this for 3 hours now.
values in modal 23 messages
scarlet mica I'll send a warning message to the user when they make an error in a component within a modal. However, after sending th...
Did PermissionFlagBits change? 12 messages
valid fulcrum Hey, for the past several years my code base has used this to check if a user has permission to view and send messages i...
1150878580193116250
ColorResolvable being quirky 38 messages
finite totem Hi yall I want to set e color for my embed, so I gave it a string in the format of `"#abcxyz"` and it said "me no like t...
Can't set up localized commands 25 messages
barren yew When I try to use the `setNameLocalization` or `setDescriptionLocalization` builders, I get this trace: https://sourceb....
1150878580193116250
Using SHARE_ENV with ShardingManager 2 messages
orchid rain I'm trying to share my main process `process.env` with my worker threads by using `worker_threads.SHARE_ENV` when spawni...
1150878580193116250
Server Icon for Embed Thumbnail 3 messages
forest zephyr Anybody know how to get a server icon for a thumbnail? ```js const { SlashCommandBuilder, EmbedBuilder, Guild } = requi...
Proxy 8 messages
placid oracle Hello, I’m running multiple shards. What’s the best way to implement proxies and avoid the Cloudflare bans? Ideally bo...
1150878580193116250 998292157150535700
Different Profile Picture in Different Servers 5 messages
winter forum Hello everybody, I have two bots, one being the free bot and one the premium bot. I want to merge them since it’s inef...
discord-rpc: client.application 14 messages
glossy cradle Hey guys, is it normal that `client.application` is **null**? I created another discord-rpc project to test stuff, here...
1150878580193116250 1003448629866020986
how to use sequelize version 5? 3 messages
open sapphire npm install discord.js sequelize sqlite3
How do i learn discord.js? 23 messages
left prism please answer me i would really appreciate it if you can aswer it ❤️
1150878580193116250
How to I get those embed books things? 10 messages
elder siren Uh yeah
1150878580193116250
how giveaway boat avoids rate limits 22 messages
tidal plinth on giveaway boat, in the raffles pagination: - there's an option to show the username instead of the mention. i know th...
Need some embed UI / UX implementation ideas 6 messages
cursive vale hi! i was hoping if someone here has worked extensively with embeds UI/UX (or components v2 if that's a possible solutio...
Modal Fields 10 messages
strange wraith Can modal input fields (eg text input) be autofilled AND made view only?
Logout on shutdown with ShardingManager 7 messages
thick hollow Hello, I am currently trying to make my bot immediately "log out" i.e., appear offline on Discord as soon as my bot proc...
1150878580193116250
Button for giveaway 20 messages
thin glacier ```javascript const { checkJoin } = require("src/utils/functions"); module.exports = { customId: 'gajoin_button', ...
1425536557883850804 986538542350086175
Slash command subcommand 6 messages
mortal phoenix ```md /config thing @user /config thing @role ``` Assume I have a slash command trying to do something with a user or a...
1150878580193116250 1425536557883850804
Get total bot without enabling GatewayIntentBits.GuildMember 17 messages
north wyvern Hi — is there any way to get the total number of bots in a Discord server without enabling GatewayIntentBits.GuildMember...
1150878580193116250 998292157150535700
Pass more than string value with autocomplete option? 21 messages
quiet acorn Hey! As the title says I am looking for if there is a way I can collect more info about the option than just passing alo...
Discord Command 30 messages
unborn wadi Hi everyone, i have a problem with my code. When i did the command, the image does not appear on the embed and i don’t r...
1150878580193116250
Unable to set permissions overwrites, they wont apply 35 messages
random vapor I have this issue i dont find a fix for or what the bug might be relevant code: ```js const overwrites = interaction.ch...
1150878580193116250
MessageManager.fetch with cache: false includes cache as a query string param 10 messages
tired field Not necessarily a big deal, but something I found funny is using (channel).messages.fetch with { cache: false } and some...
1150878580193116250
audio file not sending entirely? 7 messages
digital wagon so for some reason, only the first bit of my audio file is sent as part of my message. It sends as a few KB but the enti...
1150878580193116250
Kinda wanna start coding 32 messages
onyx cliff I've recently been looking into coding! I'd like to try Javascript. In the past I've tried FreeCodeCamp but have had a l...
Can you help me, how can I do it after he selects it and uncheck it? 4 messages
pearl spade Can you help me, how can I do it after he selects it and uncheck it?
Containers 11 messages
elder siren How do i make a container
998292157150535700