djs-questions

9202 threads · Page 152 of 185

The slash command breaks after using it 2 times 4 messages
lament kestrel Hello. I am "skill issues" in the discord.js, I barely made a command to receive and withdraw data from the modal window...
No error stack trac 44 messages
mint oriole ```js ERROR] 18:56:44 DiscordAPIError[10004]: Unknown Guild DiscordAPIError[10004]: Unknown Guild at SequentialHandl...
The application did not respond 10 messages
meager zenith When I try to run my command, it doesn't respond and there are no errors ```js //ping.js import { SlashCommandBuilder }...
Multi select menu 2 messages
hard dragon It is possible to do a multi select menu? because right now i can just select one thiing
rate limit 30 messages
gray quiver avoid getting rate limited on reactions
Creating Roles with Permissions set the same way you set them in Channels 20 messages
empty oxide As someone with OCD I struggle with different "looks", I am trying to change perms of a role in the way I would change ...
Role Creator Command Not Working 8 messages
empty oxide Hey All, Apologies if this is really simple... new to JS/discord bot dev stuff (day7), I have a command that has most...
message.createdAt.toISOString() returns a date in 2021 27 messages
cold sand Basically title. It returns this string: "2021-05-11T05:48:10.036Z", did I missed an intent/partial?
Interact has already been acknowledged. 19 messages
hallow badge I have this discord.js embed with buttons where users can choose an attack move and it will attack a boss. The problem s...
Mongoose, error 1 messages
mossy moth Hi, i had a problem with mongoose, when i want to use a command with schema i have this as an error, if anyone knows whe...
slashcommand-choice 3 messages
sharp thorn ```js const { SlashCommandBuilder } = require('discord.js'); module.exports = { data : new SlashCommandBuilder() ....
Make embeds smaller in any way 5 messages
edgy dune this embed is WAY too screen filling, any way to reduce the size of this embed without cutting information(stuff like de...
node deploy-commands.js Error 36 messages
rapid panther So I have been trying to fix this for like 2 hours with a friends help and other support but to no avail. Here is the co...
How do I correctly use .setEmoji() when creating a Button with the ButtonBuilder? 49 messages
vital gale Hello, I'm trying to add emojis to a Button, but I always get `components[0].components[0].emoji.name[BUTTON_COMPONENT_I...
how do i make it so that when a person has a specific thing out of an array in a database return tha 3 messages
trail shadow how do i make it so that when a person has a specific thing out of an array in a database return that he has it?
Missing Access 4 messages
drowsy crescent I have tried to register my slash commands but I got this error:
Remove buttons on collector closing 4 messages
split valve I am trying to make it so that when ```js collector.on('end', collected => { console.log(`Collected ...
Typescript interaction.editReply optional property 23 messages
simple meteor I'm rewriting a bot in Typescript but I get a compilation error. The Javascript code works as intended but in Typescript...
Best way to send and receive messages in PM ? 8 messages
unkempt drift Hello, I am looking to send private messages to discord clients. I would also like to detect when clients send private m...
Which Event is fired when a tag of thread (Forum Channel) is updated ? 2 messages
pulsar fulcrum Hey ! I wanted to know, which event can I use to detect when a tag is added or deleted for a thread (Forum channel) ? T...
InteractionNotReplied 8 messages
dull wing I don't know why exactly I keep getting this error, all my code *seems* to me that it defers and replies later on at any...
Bot stops listening after running a long time 29 messages
harsh sapphire I have written a bot using Discord.js 14 which seems totally stable. Its process runs happily for long periods of time a...
Is recommendable wait to search Audit Log? 3 messages
void charm Is recommendable wait X seconds to get Audit Log? To avoid Discord lag and trying fetch an audit that doesn't exist yet?...
Not able to do node .deploy-commands.js when trying this command 18 messages
crisp valley I have a command that uses .addSubcommand but it doesn't seem to work. I'm not able to do /node deploy-commands.js witho...
How can I prevent the Error [ShardingInProcess]: Shards are still being spawned. 14 messages
mellow frigate `Error [ShardingInProcess]: Shards are still being spawned.` How can I prevent this error from being logged? `while (!c...
Best way to update slash commands 122 messages
barren acorn Hi everyone ! I have a pretty large bot with arround 50 slash commands. Some of them are pretty complex and have options...
creating a link between my node.js platform and my discord server 3 messages
quaint pond Hey! I have developed a platform that allows people to sign up, follow groups and also subscribe for additional resour...
Linked Roles 2 messages
sly blaze Hi there, are there any plans to implement linked role support?
discord message problem 5 messages
karmic turtle this isn't working for me, check my code const client = new discord.Client({ closeTimeout: 3_000 , waitGuildTime...
Send a message every minute 4 messages
random vine I want to send message to channel every minute but,,, I want know how to do this at all how can I do this?
Typing in threads 8 messages
wind trail what intents do I need to type in threads? I already have "GuildMessageTyping", but it returns a Missing Access error. ...
Issue with using a proxy 14 messages
molten peak When running a slash command, I've observed an error at the following line: `await interaction.deferReply({ephemeral});`...
How do you kick mentioned people using Discord.js 51 messages
rancid wasp I'm using __No slash command builders__ just using Client.on(interaction) anyone please inform me how to kick mentioned ...
Why were some builder patterns removed in favor of passing json objects as function parameters? 4 messages
civic yarrow Having to look up documentation for the expected types instead of relying on the class methods (ex. `setName`)to guide m...
Having trouble editing an already sent embed 13 messages
stiff obsidian Hi! I have some reaction role embeds in my server which display all the different roles. I want to add some roles to a s...
Give User Roles with SelectMenu 24 messages
median frost How can I give the mentioned user the roles selected in the SelectMenu?
can someone help me understand integration permissions 12 messages
wide pendant I set my ban command to have the permission bit of administrator only This doesn't let anyone else see my ban command if...
export and usage problem with modules 21 messages
red oak ```const { Events, ChannelType } = require("discord.js"); module.exports = { name: Events.ClientReady, once: tr...
Send multiple embeds of the same width, no matter the content size. How? 2 messages
somber bloom I've seen on a few discord bots who had their embeds, no matter its content, be of the same width always. However I can'...
DMs 4 messages
grand robin Hello how i can read my bot Dms and send it to specific channel on my server ? pls send me link or any video about this ...
How to incorporate subfolders into a command handler? 3 messages
dreamy thunder I'd like to organize my command files within the commands folder because they're getting messy. I want to add subfolders...
What is color format when using "embed.color"? 28 messages
cold sand Basically title, it seems it isn't hex or rgb, what is it then?
Unhandled promise rejection: Error: getaddrinfo ENOTFOUND discord.com 2 messages
west iron Code: https://sourceb.in/TtFvp6fwaF Error: https://sourceb.in/TvO9akpsrL
Discord API Error: TypeError [ModalSubmitInteractionFieldNotFound]: Required field with custom id " 1 messages
west iron https://srcshare.io/640774006649a477ba7aa962
Bot dies when message is deleted 10 messages
dusk fern If my bots Embed is deleted after sending with a listener on, It kills the bot, Is there a way to avoid this happening? ...
How can I mess with RoleSelectMenuBuilder? 4 messages
versed plover I was trying to find forums and videos teaching how to work with this type of menu builder, but I couldn't find it. I wo...
Custom typing for Interaction in TypeScript 5 messages
spark goblet Hello, I'm currently developing a Discord Bot with typescript. I'm right now using an event listener to see when an Inte...
Permissions is null 22 messages
nocturne tulip I tried using the permissions setting given in the djs guide website but whenever I try it shows permissions as null. Do...
emojis not completely working in .setTitle in embeds 16 messages
neon harness attached image, am trying to use emojis in the title of an embed, which works for one of the emojis but not the other. i...
Is there a reason explained not to pin `discord-api-types` version on discord.js? 13 messages
lethal heron There are some cases where conflicting types between `discord.js` and `discord-api-types` caused TypeScript type error (...