djs-questions

9202 threads · Page 100 of 185

Does GuildMemberUpdate get triggered when a user completes the onboarding ? 3 messages
turbid sundial I see that the guildMember#flags field can also contain the flags `STARTED_ONBOARDING` and `COMPLETED_ONBOARDING`. Does ...
Any reason this doesnt work? 6 messages
undone flame I used the code from one of my old bots that used to work. There are no errors, the bot just doesn't respond to the comm...
Can't figure this out 3 messages
deft grotto C:\Users\shark\OneDrive\Desktop\discordbotv2\Handlers\eventHandlers.js:28 table.addRow(file, "loaded"); ...
npm init 2 messages
lone bridge i have node.js installed, i ran node -v in command prompt, version is 18.17.1, then i tried to run npm init in terminal ...
Error: Expected token to be set for this request, but none was present 16 messages
rare coral I'm getting this error when I try to execute a permissionOverwrites.set() to a channel. **Code:** https://sourceb.in/9KW...
I've created a server.js command designed to provide information about the server. However, I'm faci 26 messages
halcyon scarab I've created a server.js command designed to provide information about the server. However, I'm facing an issue where, u...
Default RoleSelectMenu options 4 messages
brave willow I am trying to set default options (ones that are already selected when the user sees the select menu), but this doesn't...
Channel is not found ? 24 messages
jagged garnet hello i have a probleme a little probleme i want to send a message in a channel when someone rank up but the channel is ...
Accessing handle functions globally. 10 messages
hardy briar I've been working on creating a Discord boilerplate for myself. One of my goals was to develop a handler function capabl...
premium services 9 messages
rose field What's the best way to do premium services in my discord bot? Ive never done that before and wanted to know the best way...
what am I doing wrong? 12 messages
nimble wolf what am I doing wrong?
timeout perms 7 messages
dusky tusk im trying to make a timeout command but idk what perms are required if (!message.member.permissions.has('TIMEOUT_MEMBERS...
slash command reply taking a minute or two to send message despite logging fine 19 messages
fast creek (the code was too big for the message it's after this one) context: I'm working on a mod of the api and for some reason...
Timeout Error 10 messages
green sequoia Hello! After this message you can see my current Code. I have a problem, that firstly, i get the error right here: ``` ...
DiscordAPIError[50035]: Invalid Form Body 2 messages
vestal spindle Code - https://srcb.in/BPUgexv8SV ```DiscordAPIError[50035]: Invalid Form Body data.components[0].components[2].custom...
How do I distinguish an `APIRole` from a `Role`? 8 messages
wise pasture In a CommandInteraction, if you set one of the options to `type: 8` for Role, the user can pass in an `APIRole` if they ...
What's the best way to set a button to disabled? 16 messages
lean basin I have the button via interaction.component I noticed there isn't a set disabled method or anything of the sorts
CategoryChildManager create method not working 10 messages
crisp garden Hey everyone! I am having trouble creating a child channel within a category. Here is the code ```js const { Events, ...
Message content of partial message in messageDelete event 3 messages
peak pivot How can I get the message content of a partial message in the messageDelete event?
RoleUpdate Bug 78 messages
nocturne ingot I want to get the last updated role id, but it constantly prints the role id to the console .log. Is it normal to log th...
problem making auth 18 messages
bronze parrot this error occur when i click authorize on the discord page in my website
998292157150535700
Hello. Do you think it could be a problem to run 2 bots in same process main.js ? with separate func 3 messages
cyan nexus Hello. Do you think it could be a problem to run 2 bots in same process main.js ? with separate functions after. to hos...
commandArray is not defined but it is defined. 19 messages
jaunty flame ```js const fs = require("fs"); require("dotenv").config(); const { REST } = require("@discordjs/rest"); const { Routes ...
TypeError: MessageEmbed is not a constructor 6 messages
uneven wasp I seem to keep getting this error when trying to setup the DM when they get banned I get this error ``2|Fireball Beta ...
discord.Colors class question 55 messages
half ember Hello , kinda interested how should i go about this code : ```js .addStringOption((option) => option.setName("eventPlay...
messageDelete event 39 messages
nocturne goblet When I try to delete a message that was sent before I run the client the message that is on the messageDelete event does...
How to send the image inside the embed? 4 messages
crude sand The image is sent outside the embed as a regular attachment
Discord Inpainting? 15 messages
cloud grail i'm wondering if this is a new feature from discord like, like a modal upgrade or something, and if we can use them now,...
Unknown Interaction Fiasco 43 messages
tame forum Everything is latest and I have ensured to defer reply. No matter what I do, Discord.JS will sometimes return an "unknow...
Command not found, when it's clearly found 4 messages
stray mist So the commands I have are "ping" and "pong", but when I run the commands, it does nothing.
Detect message and send this message to LocalAdmin.exe and then give reply from this app 3 messages
noble depot I'm very noob in programming such a bots, so can you help me to code a bot, which will detect message like !cmd command ...
bot does not responding to any command 6 messages
bright drift ``` const { Client, Intents } = require('discord.js'); const client = new Client({ intents: [Intents.FLAGS.GUILDS, Inten...
Using d.js from a web backend 13 messages
autumn steppe My specific use case is that I want to be able to perform simple actions that don't require the gateway from a web backe...
Max number of command registrations 21 messages
sonic stag Hi, I am working on transitioning my bot to a slash commands. I see there is a limit on how many times we can register c...
How remove old / command from list 2 messages
woeful tiger I created other script to command but old didn't removed from list. But i don't know how remove it
help with console time 5 messages
topaz kraken I know that this isn't even discord.js question, but Im just too dumb to fix it and I dont know what to do please help :...
Randomly Fails at creating roles 9 messages
fossil swallow I am very new to all of this. Im trying to create roles based on array of objects, meaning the object's name. This was w...
str is logged as blank when assigned, but not blank when not assigned 1 messages
sly fulcrum ```js const config = require('../config.json'); module.exports = { type: 'on', triggered(bot, msg) { if ...
How do I add prefix commands to my bot mostly working on slash commands? 43 messages
surreal shell Hey, so I was trying to add prefix commands to my slash commands based bot by following a TUTORIAL, which led to me just...
nsupportedCacheOverwriteWarning 21 messages
half ember got this error stack on fresh ts project , anyone could tell me whats wrong ? ``` (node:1604) UnsupportedCacheOverwriteW...
Is it possible in these forms instead of a text field, to put a checkbox? 3 messages
worn yoke Is it possible in these forms instead of a text field, to put a checkbox? If so, how can I find the documentation or som...
How create Forms 3 messages
worn yoke Hello everyone, I wanted to know how I could create this type of form, what functions should I use?
Group DM recipients 21 messages
scarlet pewter Does discord.js manage and cache recipients (users) of a direct message (DM) group? I didn't find anything related
998292157150535700
How discord.js handle threads and posts caching 2 messages
signal compass HI , how discord js handle such stuff as handling cache for threads and posts
986538542350086175
Reload Commands 27 messages
hidden grove Hello, I'd like to update my bot's commands with a command on Discord. I've followed the instructions on this page (http...
unknown interaction code 10062 6 messages
frigid copper How can I avoid "unknown interaction code 10062". It kill my bot 😅 #10062
slash command not appearing 13 messages
ancient plume made a slash command, it's not appearing when i bring the bot online, ``` const { Client, Intents, MessageEmbed, Messa...
998292157150535700
How to send a embed automatic, when the bot is started 37 messages
wooden wharf help pls
Help with autocomplete and JSON. 38 messages
vernal epoch This code searches within 3 JSONS (This will change at the end) it searches the keys "text" (name) and "reference" (Page...
How to access interaction.options inside button callback 43 messages
half ember Is it possible to get `interaction.options` from command handler to the button itself so i could continue with the handl...