djs-questions

9202 threads · Page 128 of 185

Need help getting Discord Client Type and Version 17 messages
small coral So for my stats.js command I am trying to get Discord Client (Mobile, web, desktop) and Version (like what update the cl...
Why I'm unable to send messages in Announcement type channels? 19 messages
sleek shuttle ```js module.exports = { name: 'msg', description: "", run: async (client, message, args) => { var ...
Reload of Commands throws errors 14 messages
quaint frost Hi, I am testing out the reload function for the commands from the djs guide. However even if I follow everything from t...
guild.scheduledEvents.create not working with latest version 10 messages
cobalt echo { "name": "qsdas", "scheduledStartTime": "2023-05-24 16:15+05:30", "scheduledEndTime": "2023-05-...
Begginer | Adding one slash command 13 messages
woeful terrace Alright, so I'm new to discord.js, but apparently I seem to need a lot of code just for the most simple command. First ...
DisCloud 3 messages
clever yacht hey so does anyone know how exactly does discloud get your bots tag, avatar (basically the user object) by just providin...
Display "Failed of the interaction" but no logs error and still running well 5 messages
sacred dirge I've done a pagination on an embed, everything works well when i click on navigation buttons but a very ugly red message...
Send message to a channel after interaction expiry? 3 messages
viral schooner Creating a reminderbot with customizable frequency, but frequency will be in the order of hours rather than minutes... h...
Cannot retrieval a list of member by role id 8 messages
agile lily Hi guys, I'm working on discord.js v14.11.0 on Node.js I would like to retrieval a list of member has a specific role b...
Command options 3 messages
topaz shale Im trying to add command options so i can be able to @ people while in the command and a few other things im not sure wh...
Ping is not defined 5 messages
ashen topaz ^
Accessing direct messages? 6 messages
humble bough Hi I am trying to see whenever my bot was DM'ed and then send the dm to myself , the first part I was testing for this w...
How can I reset a select menu and then show a modal? 7 messages
magic jasper I've tried using `interaction.update()` but it doesn't work
I don't know how to activate responses based on each button 10 messages
bronze ice ```js async function battleButtons(player1Id, player2Id, message, battleEmbed, time) { const row = new ActionRowBui...
constants.json not found 10 messages
ashen topaz ^
How to detect if a string is a snowflake and check what type of snowflake it is? 9 messages
gusty thistle I've been doing this but i want to know if there is an easier way ```js const snowflake = options.getString("snowflake")...
send msg to certain guild & chan 8 messages
empty knot Is it possible for a bot to send a message to a specific guild & channel on that guild ? if so, can I get a snippet or l...
I get this error 11 messages
timid nest PS C:\Users\Ahmet\Desktop\bot> pnpm install discord.js pnpm : The term 'pnpm' is not recognized as the name of a cmdlet,...
How to add more than 25 choices to autocomplete option discord.js v14 3 messages
neon tinsel I have 35 choices but discord only loads 25 can you make it so that you have more than 25 choices but only 25 are displa...
Getting New post from a forum? 2 messages
near hound Is there a event for new forums post or do I need to do something else to check for new posts in a forum?
pull members 39 messages
bold sigil How would I make authorised members join a server?
Idk why this happens 7 messages
dusty sapphire There's no error but the intention of the code is to send and embed when it detects a forbidden word. But don't works
Where do we report documentation link/quality issues? 6 messages
echo grotto I'm running into some broken links in the docs, e.g. on https://discord.js.org/docs/packages/builders/stable/EmbedBuilde...
998292157150535700
What would be the best approach for generating an image as variable as this? 4 messages
bright patrol Attached below is a Figma mockup I made of how the output of my bot should look like. The bot gives a daily breakdown of...
How to DeleteReply, then Reply to an interaction? 16 messages
silk salmon When a user clicks the button, I am trying to delete the original message with the button using deleteReply(), then repl...
RoleSelectMenuBuilder 10 messages
orchid trail Is there a way to limit which roles will be shown for a user to choose? I want to implement this for a "choose roles" co...
DMs not receiving 5 messages
gray falcon Can someone explain to me why this code doesn't let the bot receive DM messages? It can receive all other messages in gu...
Cannot read properties of undefined (reading 'Guilds') 11 messages
pallid helm I reinstalled discordjs, and now I get this error. Any ideas? `TypeError: Cannot read properties of undefined (reading '...
ROLE_ID from .json file is wrong 26 messages
ashen topaz ^
How would i be able to use these buttons multiple times? 8 messages
high sky Right now you can only use the buttons once and never again, how'd i escape this while still having the time limit to us...
Announcement publish 11 messages
last relic Is it possible to make the bot auto publish a announcement?
Context Menus in DMs 14 messages
candid oyster Can someone point me to a resource going a bit into detail about ContextMenus in DMs. The discord api docs aren't very u...
discord bot is taking lots of time in giving responses.using latest version of discord.js 56 messages
cobalt echo discord bot is taking lots of time in giving responses.using latest version of discord.js
Autocomplete 25 entries limit bypass 17 messages
near shale How can I bypass the 25 entries limit? I have an array of about 8000 entries <:sad:946200437860761653> ```[ 'arabacal...
0 coding experience and made this bot from templates and guides 5 messages
safe ether So i was literally laser-scanning every part of the web to make a discord moderation bot and found some templates and bu...
998292157150535700
GuildMemberManager always fetches from API when requesting multiple users. 7 messages
oblique saddle Hello! I noticed `GuildMemberManager` ignores the cache when fetching multiple users. I was wondering if this is intende...
986538542350086175
Select Menu not responding 50 messages
small coral So I am coding a command that requires select menu to show more embeds. Soon I will be adding buttons to these responses...
Discord bot taking lots of time in giving responses. 17 messages
cobalt echo hey i am using discord.js@13.8.0 and discord bot taking hell lots of time in sending responses? does any one know why it...
Import ButtonStyle 5 messages
shut turtle Good morning, does anyone know how the ButtonStyle import was in discord.js v14.11? import { ActionRowBuilder, ButtonBui...
I was doing a badword "detector" and don't works when It is to send the console.log 7 messages
dusty sapphire the code: const fs = require("fs"); // Función para detectar la palabra prohibida. function detectForbiddenWord(conten...
Disabling Components 14 messages
jovial moon ```await i.update({ components: [ActionRowBuilder.from(buttonRow.components[0]).setDisabled(true)]});``` Doesnt Work
broadcastEval blocks all shards 12 messages
faint reef Hello. I have a broadcastEval which calls a function on each shard. After running on about half of the shards, all shard...
Cannot Hear Bot's Audio (Distube Library) 5 messages
quick tendon Everything works fine in the below code as intended. Bot Joins Voice Channel and displays the name of song that is going...
Client Permissions 5 messages
jovial moon How To Check If Client Has Permissions
Missing Permissions 12 messages
near shale ```javascript Error occurred while changing the nickname: DiscordAPIError[50013]: Missing Permissions at SequentialH...
Using channel selectors in modals 11 messages
oblique shuttle Hi all, was wondering how I can go about using channel selections inside of a modal? I am currently trying to get `Chann...
Edit an ephemaral embed 9 messages
hybrid juniper Hi, I have two event handlers slashcommand.js and selectmenu.js. my slash command send an embed with a select menu comp...
Error "Something Went wrong. Try again" 33 messages
candid kiln Hello, I have an error with modals, when i send it with my client by clicking on the button "submit", it wait ~3 second...
Buttons not being added 17 messages
ashen topaz ^
Error when attempting to send message to a specific channel 3 messages
pallid helm `TypeError: Cannot read properties of undefined (reading 'send')` ```js const channel = client.channels.cache.get(...