djs-questions

13317 threads · Page 132 of 267

slash commands 4 messages
slender dawn slash command not showing
Does DiscordJS support being able to read super reactions? 3 messages
signal marlin As the question says does current discordjs have the ability to parse between normal and super reactions?
Help with Understanding Cache Sweepers 5 messages
drowsy crest So if I set the interval for a sweeper to every hour, after an hour of my bot being online, if I'm using the users sweep...
Update message with images using discord.js REST 15 messages
fringe panther I'm trying to add images to a message using discord.js/REST V10, but without success My code: ```ts const rest = new RE...
@discordjs package
Edit Embed send via Interaction Reply on component input 59 messages
vapid crescent Not even sure if the title is exactly what I'm looking for/makes sense, the last version of discord.js I used was 12.x, ...
cant install @discordjs/opus 4 messages
void heath As the title says, im trying to install opus, but its not being added at all. No errors so far.
The bot doesn’t go online. 16 messages
alpine lily hi, what should i do if my bot doesn't go online? (the console returns no errors when I type “node index.js” or “node .”...
.getMember casuing an error 19 messages
ashen topaz ^
discord not defined 33 messages
next heart ReferenceError: Discord is not defined at Client.<anonymous> const { Client, GatewayIntentBits, MessageEmbed } = ...
Webmseeker Error 7 messages
orchid zodiac I posted issues here: https://stackoverflow.com/questions/76292124/maxlistenersexceededwarning-discordjs-webmseeker-erro...
Stage Bot 6 messages
rotund birch So many of my clients cannot join to speak on stage channel because of bugs in discord mobile version of the app. Accept...
Sending an array but read as an object 24 messages
ashen topaz ^
Discord.js don't work on Ubuntu 27 messages
charred onyx I've been running a bot for a few months and i've never had a problem running it with windows, but when i put the conde ...
"this interaction failed" while the event seems to work fine 7 messages
chilly parcel I have been trying to code a "/setup" command for my bot and I wanted to to be settled with select menus, diving from pa...
Am i able to make a ticket bot w a dropdown once someone makes a ticket ? 6 messages
cloud sable title, i tried a lot of stuff but it just doesnt work for me
Cannot find Category by Name (Discord JS v14.9.0) 8 messages
white thunder I try find category by name, but always I get back ,,undefined". I'm using Discord JS v14.9.0. Here is a code: ``` ...
Temporary slash commands permissions for a member joining empty voice channels 5 messages
humble dew I have made a slash command whose use permissions I am tying to restrict to any guild member that joins an empty voice c...
Hello I have this error: 6 messages
wild raptor ```js components[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (1,). at handleErrors (C:\Kigo-2\node_...
My Bot cant get any command on DM 6 messages
solid bear Version: V14.11.0 I realise this error today but Idk why. I can use a week ago but idk what happened now My bot cannot ...
Reply interaction 2 messages
mortal pendant Hello, for my drop down menu I use. then so after 15 min it works more and rather than having the message interaction fa...
Discord Bot does not restart when a relog occurs 8 messages
frank crystal So I have this discord bot which interacts with mineflayer (a minecraft bot). I have a relog function within this bot wh...
New Username update. 3 messages
last relic When will the new username update come out for discord.js? Since they're already rolling it out for some users
Command doesn't deploy 9 messages
pallid helm When I try to deploy my slash commands globally, it doesn't show up. Any ideas? ```js const data = await rest.pu...
Bot prefix not being recognised 17 messages
next heart Hi I just started creating my first bot for my server. I have the code now, and it's supposed to respond when a user use...
Delete button 5 messages
mortal pendant Hello, ```js interaction.reply({ embeds: [claim] }); const rows = interaction.message.co...
Sends message to specific channel every n minutes 7 messages
vapid zenith How would i make a bot that sends a message to a specific channel every n minutes? Please add a code snippet, thanks in ...
Send message to specific channel every N minutes 4 messages
Bot is giving me an Intent error 7 messages
solid olive `const Discord = require('discord.js'); const client = new Discord.Client({ intents: [Discord.Intents.GUILDS, Discord.In...
shadow reply an interaction 8 messages
weak narwhal How can I tell discord that the interaction was responded to without actually using the response functions? I have a co...
Slash commands localization 3 messages
vital scarab How does localization work in slash commands? I specified everything correctly, chose the language on the server for whi...
How can I make the bot send a "voice recording" using discord.js? 9 messages
placid ridge Please provide me on how can I do this in discord api or discord js
How do I add into the 'apps' section on someone's profile? 6 messages
pearl echo Like the image attached.
Role not assigned to user sometimes 4 messages
wild hare I'm not sure what causes it, has anyone got issue where you remove user role and assign new one, new one is not assigned...
cannot send private message 12 messages
fleet marsh error code ```/root/discord/node_modules/@discordjs/rest/dist/index.js:640 throw new DiscordAPIError(data, "code" ...
Create "Invite as Guest" invite link 14 messages
pale stirrup You can now invite people "as guest" to voice channels in community servers. These invite links will give you access to ...
Disabling Components 16 messages
jovial moon ```js const buttonRow = new ActionRowBuilder() .addComponents( new ButtonBuilder() .setLabel('NextFact') ...
Bot acts without user input 3 messages
pallid helm https://pastebin.com/ZW0QNvtL When I run the command, it asks for the input, but then continues to send `Message configu...
Server settings ban page is not responding 3 messages
burnt axle Our server was hacked. Lots of permissions were changed and channels deleted. The ban page only displays a spinner. How...
handle newline in string for build embed 10 messages
fleet marsh Hello so i decided to make an slash command for build embed message, and on of option is description of building embed, ...
The problem with Events.GuildMemberUpdate. 10 messages
stone thorn client.on(Events.GuildMemberUpdate, async (memberBefore, memberAfter) For some reason memberBefore has no roles when th...
Member still showing in cache after leaving 7 messages
inner condor Hello, I am making a "guilds" command to get a list of guilds a member is in (the bot is in multiple guilds). Upon the ...
Error type. Typescript 10 messages
toxic latch Hi, I want handle error correctly in discord.js. For example `client.login` `.catch((err /* Which type is the error*/) ...
TypeError: Cannot read properties of null (reading 'user') 6 messages
hasty iron There is no problem in my codes but I am getting an error.
How to send image link, and have it be displayed? 16 messages
silk salmon I've built a wrapper builder for the embed builder, and message payload. I am expecting by placing an imgur link in the ...
Gateway Rate Limits 4 messages
tired field Similar to the HTTP API, Discord has a Gateway rate limit (https://discord.com/developers/docs/topics/gateway#rate-limit...
Deleting a Component after a certain period of inactivity (Solved) 4 messages
elfin phoenix Is it possible to remove a component after a certain period of time if no one uses it? ```ts const select = new StringSe...
User can use built-in slash commands but not bot commands 7 messages
hollow pewter I want a channel where the user can send a bot slash command, but not send messages. But in the channel in question, the...
Narrowing type of GuildBasedChannel to TextChannel 2 messages
barren vigil I have a GuildBasedChannel that I am trying to narrow to the type of TextChannel. I tried guarding with isTextBased() bu...
Pause/unpause all invites link via d.js 2 messages
fallen dome How to?
My Discord Bot User Count Is Increasing Per Second 10 messages