djs-questions

9202 threads · Page 141 of 185

Getting command id automatically 28 messages
mossy cairn Hey, i am currently coding a bot in v14.8 in typescript. I am using the warix structure : https://github.com/warix8/disc...
Emoji select menu 6 messages
hallow briar ```js const HxPaymentSelect = new ActionRowBuilder() .addComponents( new...
Differences between awaitModalSubmit and awaitMessageComponent, awaitReaction... 22 messages
wet fable Why awaitModalSubmit has required time property while awaitMessageComponent, awaitReaction doesn't?
Slash command for 1 user? 5 messages
indigo crown Is it possible to make a slash command visible to only 1 user? I basicly want to add a restart command however I don't...
Mention Spam Protection Activation / Deactivation Detection 21 messages
gusty thistle Can you get the user who deleted / edited an auto mod rule?
What are Partials? 2 messages
upper wraith What do they do, and what are some use cases for them?
"Interaction failed" for all button commands 9 messages
cinder flicker Discord.js = 14.9.0 node = v18.12.1 Hello, I've posted something similar in the past ( https://discord.com/channels/222...
Disabling all buttons in a message 2 messages
lime owl if i had a message with lets say a few buttons and a select menu and i wanted to modify it so all the buttons are disabl...
Error Command 69 messages
vague elbow create a react-role command, but when I run it it gives me the following error in the console. ```node:events:491 ...
bot doesnt send anything when i send a command 27 messages
arctic edge i tried a ping command for my Xen bot and it doesnt send anything back not sure why i can send the code of index.js and ...
Easiest way to check if an emoji is default or belongs to the server 19 messages
digital nova I'm trying to have a bot copy message reactions over to another channel for a starboard. What's the easiest way to check...
assigning role to a user 11 messages
hybrid imp I have this code to assign role to a user: ``` var role= member.guild.roles.cache.find(role => role.name == "Test"); ...
cannot find module discord.js 19 messages
uneven crater i keep having this error cannot find module discord.js i js started using virtual studio code and yeah i installed every...
Is there any limit to the amount of bots and registered commands that a server can have? 6 messages
polar quartz My newest bots don't seem to be registering their commands in my server but function in DMs. They've been invited to the...
Sharding RAM (switching from internal to traditional sharding) 7 messages
drowsy crest How much RAM typically does a bot with around 40 shards use? I'm switching my bot from internal sharding to traditional ...
Free users can upload zips of 100mb but bot throws error when uploading > 8mb? API limitation? 5 messages
gentle timber Free users can upload zip files of up to 100mb but my bot throws an error for > 8mb zip files. `DiscordAPIError[40005]: ...
Setting up permissions 24 messages
weak nexus I started from the tutorial on https://discordjs.guide and then modified the example (https://github.com/discordjs/guid...
Sweepers configuration 3 messages
versed karma Hi! I'm trying to set a sweepers filter but I'm having trouble. I'd like to delete all emojis from the cache that aren...
Warnings command outputting mongodb database entry instead of embed 14 messages
hasty mica So I created a warnings command to see all warnings from a user. Instead of sending the embeds the console just outputs ...
Select menu emojis 68 messages
hallow briar https://media.discordapp.net/attachments/1094668346189951020/1094694931911692369/image.png How can I make emojis for se...
Discord Rate limit error 6 messages
vagrant pumice i have a bot that changes channel name and send a msg why when the bot got limted from changing channel name nothing is ...
webhook ping role id 15 messages
magic gazelle Hello, I have one such question, is it possible that the webhook link that you use for sent messages automatically pings...
why do discord js developpers change the package names so much each version 4 messages
wise pier it's so annoying
messageDelete events can't read "id" of the user(message author) 18 messages
dawn zephyr ```js client.on('messageDelete', async (messageDelete) => { const fetchedLogs = await messageDelete.guild.fetchAuditL...
Questions regarding caching system 3 messages
fickle knoll I made a fight command for my game bot. It works great, but there's one major problem: It is slow. I found the issue tha...
Error: cannot open shared object file: No such file or directory 2 messages
small nimbus I trying to install the package "discord-image-generation" and he give me this error ```const DIG = require("discord-im...
Cannot find module './_baseGet' 32 messages
ionic sky ```js node:internal/modules/cjs/loader:942 throw err; ^ Error: Cannot find module './_baseGet' Require stack: - /ho...
Invalid `Grant-Type` `Invalid "code" in request 21 messages
dusk fern Trying to get Oauth to work, and I'm constantly met with this error... Heres my code: ```js try { const code = ...
reaction-role 11 messages
vague elbow Well I'm breaking my head more than hours to make this work but it's not coming out the way I want. As you can see, I w...
Hello, anyone can assist me with this issue 23 messages
drowsy cargo TypeError: Cannot read properties of undefined (reading 'id') at get cache [as cache] (/home/runner/DoorsHelperBot/n...
Discord Oauth invalid_response_type 3 messages
dusk fern Following along with the guide from here: https://discordjs.guide/oauth2/#getting-an-oauth2-url I have changed the `res...
998292157150535700
How do I make the code? 5 messages
mellow kite ``` const { SlashCommandBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); ...
Sending messages from a forum channel to database, but unable to grab the tags 30 messages
amber abyss Everything is going through to my database from Discord, but I cant figure out how to grab the tags and the tag IDs. I'v...
Using d.js package for other projects that doesn't involve a bot. 3 messages
feral peak I been wondering if it's possible to use d.js package to do webhook things for other projects like Express.JS site or do...
Bot doesnt send anything. 28 messages
long hedge This is a bot that send a message when the server is empty (no one is online) ```js const Discord = require('discord.j...
A way to get number of Guilds without the GUILDS Intent? 23 messages
native ore Hey, It seems my question was lost in the <#874431116533178459>, but maybe someone will notice it here. So, the TL;DR ...
send channel not working 6 messages
hallow briar ```js client.on("message", async message => { const spooferEmbed = new EmbedBuilder() .setColor('#147d...
Is it a bad practice to use ApplicationCommandManager#set everytime the bot restarts? 23 messages
placid tiger Self explanatory question. I know that it's considered to be "bad" when using the <@461373451244929025>rd/rest package b...
Auto Mod Create Event not working 7 messages
gusty thistle here is the event code. the output is nothing ```js const { EmbedBuilder, Events } = require('discord.js'); require('dot...
Payment Leads to Channel Access Bot 9 messages
quartz mirage Hey guys anyone can help me, I’m planning on creating a discord bot, where it’s main features is creating or getting a p...
Is fetching fine? 9 messages
hardy island I want to do the minimal amount of discord API requests possible. If I receive an interaction which may be in a correct ...
TypeError: Cannot read properties of undefined (reading 'id') 4 messages
formal bolt TypeError: Cannot read properties of undefined (reading 'id') Hi, after updating discord to version 13.15.0, I got an er...
Ignore channels from a category using filter 2 messages
hollow lily ```js let options = await interaction.guild.channels.cache.filter(ch => ch.type == 0).map((channel) => ({ ...
JSDoc? 14 messages
pine pewter Just realized that there is a lot of JSDoc missing. Basically the whole `typings/index.d.ts` file. Will this eventually ...
Button Interaction Member Roles is Array of Strings Not Role manager 3 messages
long flame Running into some issues with interaction.member.roles coming back as either string[] or GuildMemberRoleManager. How can...
bottons-pages 9 messages
vague elbow where I can find a guide on creating buttons with a page. I didn't see the doc addressing this
How to I turn Permission numbers into a string / array? 6 messages
gusty thistle ```js const directories = [ ...new Set(interaction.client.commands.map((cmd) => cmd.folder)), ]; ...
Button in bot activity 3 messages
gloomy flame Hello there i just saw this button in bot status!!How can i do that?
DiscordAPIError[50035]: Invalid Form Body 4 messages
fickle knoll ```js if(i.customId.split(`_`)[1] === `Skills`){ selected = i let newActionRow = i.message.components.m...
`attachment` under the `Attachment` class is now private 3 messages
soft raven https://github.com/discordjs/discord.js/commit/da23cd5d69de4856d075f00738f75c68c555ae5b Why was this change made? Some ...