djs-questions

9202 threads · Page 82 of 185

Member Permissions for subcommand groups? 4 messages
hard olive Are we able to add member permissions to subcommand groups? I have a `SlashCommandBuilder` command group for channel rel...
Error [ShardingInProcess]: Shards are still being spawned. 4 messages
vital scarab how can I fix this error? (when loading 0 shard) ``` Error [ShardingInProcess]: Shards are still being spawned. at S...
makeCache and sweepers Client Options 18 messages
torpid holly I have some questions related to this, one of them is the `GuildMessages` automatically caches all messages? and how doe...
what can I put after an interaction.update to da reply 2 messages
warm scaffold I tried with interaction.followUp it gave this error
How to properly check if the channel fetch is one where threads can be created? 4 messages
dawn thistle Hi, I have the following code : ```TS const supportChannelID = "an-id"; const channel = await guild.channels.fetch(supp...
How to make / command not act like a ! command 7 messages
pine ridge ``` prefix: { type: DataTypes.TEXT, defaultValue: "/" },``` When I type /, it doesn't show up wit...
Error Loading the src/commands/slashCommands/Other Command files. 32 messages
fossil nimbus So in the register commands file it doesnt register the src/command/slashCommands/Other If it's okay for you, it would b...
How to set offline status to bot 15 messages
small tide How to set offline status to bot instead of showing online or some random status.
can you test discord.js with jest? 2 messages
wicked jacinth /title
snowflake and string comparison 6 messages
verbal oriole Hi everybody, I need to compare channel.id which is a snowflake type with a string id that is saved in my database. The ...
1150878580193116250
rawError: { message: 'Missing Permissions', code: 50013 }, 19 messages
sinful kelp I'm not quite sure what it means? This error stems from me sending an embed, with content in the message along with th...
Importing multiple from discord.js having issues 8 messages
cold wagon Hello I have the line `const { Discord, EmbedBuilder } = require('discord.js');` This causes issues with `const client =...
Add a member to a role 7 messages
candid spade Hi everyone! I am new to Discord.js. We have a system like this: Users become a member of the learning management system...
Slash command (it's me again) 5 messages
hidden torrent constraint: 's.string.regex', given: 'channelID', expected: 'expected /^[\\p{Ll}\\p{Lm}\\p{Lo}\\p{N}\\p{sc=Devanagari}\\...
is it possible to create a forum post using a webhook ? 7 messages
quiet fog Hi can anyone help me figure out how to use a webhook to create a new post in a forum channel please
1150878580193116250
how do i fix 12 messages
severe prism Exception has occurred: TypeError: Cannot read properties of undefined (reading 'name') at Object.<anonymous> (C:\User...
1150878580193116250
Slash Commands 35 messages
hidden torrent Hey i'm a new dev with discord.js, i know basics but i can't find what goes wrong with my code for slash commands
1150878580193116250
AIDEZ-MOI /HELP ME 3 messages
1150878580193116250
File Attachment 2 messages
snow zealot How do I attach my `attachment` in the embed after `rank.build()`, given that this embed is needed for my `my-karma.js` ...
Why isn't the autocomplete working the autocomplete function isn't even getting called. 30 messages
violet sonnet Why isn't the autocomplete working the autocomplete function isn't even getting called. Code: ```js const { ApplicationC...
I'm having a problem when I add.setMinValues(2).setMaxValues(3)it starts giving this error 17 messages
warm scaffold I'm having a problem when I add .setMinValues(2) .setMaxValues(3) it starts giving this error
Fetch emoji I don't have access to 21 messages
eternal topaz (@ to reply) I was wondering if it's possible to fetch any emoji's name by it's ID. I'd like it to work even if the bot ...
Invite Permission Issue 8 messages
woven aspen (@ to reply) (repost from <#824411059443204127> but escalating) I am having an issue creating an invite using discord.js...
Getting a error and cannot figure out why 3 messages
fading bridge Im making a bot for Rust+ and im making a thing to edit smart devices names for in game and i keep getting a error when ...
1150878580193116250
Crash-"static {" 15 messages
odd igloo yeah.. idk
1150878580193116250
Why Does my Bot not react to Prefixes? 17 messages
potent moss My bot is a Smash or Pass system with pre-definable "models." I don't understand why it's not responding to my prefixes;...
Why does my Bot doesnt react to the prefixes? 1 messages
potent moss My bot is a Smash or Pass system with pre-definable "models." I don't understand why it's not responding to my prefixes;...
Collector buttons work but just once 17 messages
unborn walrus Hello! I'm working on a leaderboard system that lets you swap through pages by clicking buttons as a menu of sorts. It s...
1150878580193116250
threads issue 2 messages
glass herald guild.threads.cache.forEach((thread) => { ^ TypeError: Cannot read properties of undefined (reading 'cache') code : ...
How do I check if a bot is in a voice channel? 3 messages
fringe thorn I'm coding a music bot for my own use only and I would like to stop the bot joining a channel if another bot is currentl...
How to swap between 3 embeds using buttons? 15 messages
serene fox I would like to swap between 3 different embeds when a button is pressed. So say embed1 is displayed, then button2 would...
Delete slash command if it is "forgotten" 49 messages
shut forum I have a problem with my guilds slash commands where If I delete a command in my code, it stays in the guild. Now I'm tr...
1150878580193116250
Multi Guild Bot Management 2 messages
kindred field Hello Guys, I am building a multi guild discordbot and I already figured out to use a DB. My Plan was everytime the bot ...
I added sharding to my bot and it broke the some commands 6 messages
loud sentinel Any help is fine, I'm not sure how to fix this.
Receiving "ShardingReadyTimeout" even though ready event is firing 11 messages
hoary ice Hi there! I'm dealing with a strange problem and I'm not sure how to handle it. I'm receiving a ShardingReadyTimeout err...
1150878580193116250
messagereactionsadd with old messages 6 messages
slender glen i need to remove new reactions but this work just with messages that i send after running the bot
how did I make a bot I do not know how to code 3 messages
severe prism What
Detect new reactions 10 messages
slender glen guys please how can i make my bot remove all the reactions in all the messages in specific channel ? or at least make it...
DETECT REACTIONS 1 messages
slender glen guys please how can i make my bot remove all the reactions in all the messages in specific channel ? or at least make it...
Mentioning slash commands not working 6 messages
obtuse pulsar Hi, i want to mention the slash command so that its clickable. I think i did the code right can you help ``` const { S...
detect embed generation 12 messages
balmy oracle how do you detect when a message has its embed generated? like when you post a link to a website and the embed takes a w...
1150878580193116250
validating MessageOptions 3 messages
ripe plover hey, is there any way to check if some object is correct MessageOptions?
npm can't install discord.js 3 messages
torpid isle npm drops me a ton of errors while downloading discord.js (npm i discord.js) on my ubuntu machine
1150878580193116250 998292157150535700
Images in slash commands 19 messages
chilly wing Is it possible to put images when sending a slash command ?
1150878580193116250
multi instance bot music 3 messages
tight geyser how do Jockie music bots work, they're multiple bots with same prefix and they respond based on availability my question...
How do I use the functions or find functions? 7 messages
Shard reconnect issue 5 messages
rustic summit Hello, I have a problem that when I listen on the shard 'reconnect' event, I get the log that a reconnect has been trigg...
Optimizing ram usage 21 messages
somber vessel Hi! I need to find a way to lower the ram usage even more. What can I do? I have attached my current makeCache function....
1150878580193116250
Shard reconnect issue 2 messages
rustic summit Hello, I have a problem that when I listen on the shard 'reconnect' event, I get the log that a reconnect has been trigg...
998292157150535700
Hi I need help how do I make afk command in discord.js v13.16.0 or v13.16.x 29 messages
turbid flame Hi as I need help I'm new to discord.js How do I make afk command in discord.js Here's my code ```js const { MessageEmbe...