djs-questions

9202 threads · Page 112 of 185

Problems with the Export of modules in v14 20 messages
somber bison Only one Funktion is getting executed and the other not, what can i do?
Issue with Discord.js command deployment script 19 messages
flint geyser The script is designed to deploy application commands to a Discord bot, but it doesn't seem to complete successfully. It...
Problems with the Export of modules in v14 3 messages
somber bison Only one Funktion is getting executed and the other not, what can i do?
New slash commands not registering 10 messages
jagged folio Two of my slash commands (new ones, created after the last deployment) are not being registered. I checked that the arra...
Applications commands are registered throug rest api but not working 20 messages
warm bobcat Hello, I am having a bit of a problem.. I a file named `command.handler.ts`. This file is responsible for loading comman...
TypeError: (intermediate value).setToken(...) is not a function 11 messages
`channel.permissionsFor()` does not take timed out guild member permissions into consideration 3 messages
sour carbon According to [docs](<https://discord.com/developers/docs/topics/permissions#permissions-for-timed-out-members>), timed o...
986538542350086175
Slash Command - Webhook Avatar Not Setting Correctly to User's Avatar 5 messages
flint geyser I'm facing an issue where the webhook's avatar is not being set correctly to the user's avatar. Instead, it appears to b...
How to make embeds send correctly 6 messages
thorn rapids Hey! I've been failing to make this embed send correctly. I'm trying to make code to sends multiple embeds whenever it ...
How to make SlashCommand Args 5 messages
hearty lava Trying to make an Integer arg for a slash command but it is giving me a weird error.
Bot not coming online 19 messages
outer karma My bot does not come online when i run this code ```js const { Client, GatewayIntentBits } = require('discord.js'); requ...
Edit an interaction reply after StringSelectMenu choice 1 messages
hushed geyser I'm using discord.js@14.10.2. When a button is pressed, I reply to that interaction with a message that contains a Strin...
error on handelcomands though i didnt wrote anything there 8 messages
solar hemlock client.commands.set(command.data.name, command); ^ TypeError: Cannot r...
Making empheral embeds 10 messages
gritty cloak I'm having an issue where I am trying to make an embed empheral, I can't seem to get it to work. I am getting a lot of...
My Bot down why? 13 messages
oak maple Can anyone fix this why?
998292157150535700
GuildMemberUpdate's oldMember doesn't have correct roles. 45 messages
bitter jolt - Discord.js@14.11.0 - Node v16.20.1 I'm trying to run some code only when a specific role is either added or removed. ...
deploying commands 10 messages
nimble tusk Hi, how often do i need to re-deploy my commands, it seems they are disspearing every few days?
By hovering over an embed, an 'X' icon appears. Clicking it deletes the embed (doesn't hide it). 8 messages
signal mist Is possible to remove this for my server / bot. What is the event listener when a user press the 'X' icon, like when a u...
50001 and 50013 25 messages
sweet trellis I am getting a couple of issues related to this .. Node : v17.9.1 d.js : 14.11.0
AutocompleteInteraction#respond takes a long time to return 15 messages
trail swan my code: ```js const i = Math.random(); console.time(`searching-${i}`); const focusedValue = interaction.options.getFocu...
Custom Emoji formatting issue 9 messages
gusty thistle I am trying to use custom emojis from a server I own for my bot. The bot is in this server and has admin perms in a diff...
Need help for storing and access Token from data.json 13 messages
neat girder i want to access token from data.json which is stored like this ```js { "userID":"token", }``` token is stored for ever...
How can I use an prefix instead of slash? 61 messages
glossy arch Explain it simple please, first time using discord.js
I'm coming from BDFD I'm Gonna Try And Make A RR Bot 3 messages
drowsy chasm How would you do that?
Client only deploys 3-4 slash commands 18 messages
dawn zephyr Hey, I have 7 slash commands that I want to deploy but I can't (it only deploys 3 or 4). ```js const { REST, Routes } = ...
What is the easiest way to edit multiple permissionOverwrites? 38 messages
waxen jay So far i have tried <TextChannel>.edit, but this overrides all current permissions. So i've spread those into an array a...
Member timeout event? 32 messages
worthy spruce I want to send an automatic message and save some data on a DB when a member get's timed out using the discord timeout f...
function is not a function??? 61 messages
tacit prairie ```js client.on(eventName, async (arg) => { for (const eventFile of eventFiles) { const even...
Does discord.js update a guild's scheduled events cache if one is changed 4 messages
gaunt blade I just ran a test where I looked through a guild's scheduled event, before and after I changed a property on it, and the...
Bot not editing embed as expected 3 messages
fleet mesa ```js const existingMessages = await dchannel.messages.fetch({ limit: 1 }); const existingMessage = existingMess...
Managing roles with name/id 13 messages
modern bison Hi, my server have a role predefined called "officer", how could I dynamicaly get this role id ?
slash command: list with addMentionableOption 5 messages
modern bison Hi, I would like to know if this is possible to give the ability to make a list of multiple mentionable input from a sla...
What is the "remove role from member" code 9 messages
umbral dove ..
one time command 11 messages
umbral dove Hi, I just want to know how can I make a command that can be used by a user only once in his life?
Duplicating Embeds 5 messages
rancid carbon Whenever I go to edit my embed they duplicate but the buttons that went to the other embed still control the top one.
How do I make a role system 6 messages
rancid carbon When a user clicks on a button then a value on a embed field changes and then when the other button is pressed the other...
How to let the bot read the chat history? 5 messages
tribal slate I have come across something like "channel.messages.fetch", but I'm not sure if this is still a working way to make the ...
998292157150535700
The Docs website is not working? 3 messages
tribal slate I wanted to check some available function of the api, but realised the below website seems not working. https://old.disc...
Detecting user select menus 14 messages
rancid carbon It wont print whenever I run it.
Slash command error 5 messages
fringe crown ***why is it showing this when i run `/wave` in chat?*** main code: `require('dotenv').config(); const { Client, Intents...
Discord Voice Bot 8 messages
violet knoll I'm new to setting up discord bots and have been working on some small functions. Just trying to learn how things work. ...
get client from interaction 4 messages
inner kraken Is there a way to get the bot client from an interaction?
Attaching a select menu to a message 5 messages
pure skiff My code: ```js const select = new StringSelectMenuBuilder() .setCustomId('Select') .setPlacehold...
How to fetch a guild from the cache on another shard 3 messages
formal smelt Hello, I am making a command that needs the functionality of fetching a guild from the cache, however it is a sharded bo...
discord bot geneateur error 59 messages
languid sable index.js:26 Uncaught DiscordAPIError DiscordAPIError: Invalid Form Body embed.fields[1].value: This field is required ...
help discord bot generator 24 messages
languid sable can you help me
Property 'description' does not exist on type 'ApplicationCommandData'. 6 messages
open forge Hi yall, so I have this code here (https://sourceb.in/1t4I7PyZPo) but keep getting an error saying that description does...
Help me with python and code this bot 3 messages
queen glade Can someone help me code a bot that does things in game etx /buy if they have enough its buys what ever in the shop
Would allocating functionality to separate bots increase performance 4 messages
lime bane I don't fully understand the performance of discord.js, but I have a bot that controls the project management aspect of ...
editReply after deferReply don't works 15 messages
worthy gyro ```ts console.log("hi1") await interaction.editReply(`Pong! `) console.log("hi2") ``` - it's in an async function - it...