djs-questions

9202 threads · Page 126 of 185

'sharding is required' error, with sharding 13 messages
untold cloud recently upgraded to the latest version of discord.js. using the default ShardingManager that djs offers, but when I sta...
Discord.JS Failing to Cache Guild Members 3 messages
olive dagger I'm running the latest version of Discord.JS. The Guild I'm trying to get the members for shows as having 104, which is ...
Failed to compileModule not found: Can't resolve 'zlib-sync' 3 messages
vague tendon getting this error when just doing ```import { Client, GatewayIntentBits } from 'discord.js'``` which is weird cause i t...
debugging discord bot 18 messages
serene reef why doesn't this work? i get a connection success message, but when I type anything in the server, nothing gets picked u...
TypeError: response.createMessageComponenttCollector is not a function. 8 messages
urban nimbus I'm following the message components guide and get this error when sending my slash command. (I also get an error "Inter...
shard exiting before the client is ready 34 messages
daring blade ``` error 1: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for C:\Users\user\Documents\GitHub\Neb...
Random Sapphire Error of a "ValidationError: Expected a string primitive" relating to DiscordJS REST 48 messages
shut quiver ```ts import { CacheType, ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js'; export default interfac...
<Collection>#get not documented? 24 messages
feral olive Why is the `<Collection>#get` method not documented? I would assume its because the documentation generator isnt listing...
998292157150535700
message.channel.parent undefined in forum channel? 12 messages
amber abyss I'm getting an error where message.channel.parent is undefined. My intention is to cross-check the forum channel in whic...
Voicechannel.setName not working 10 messages
echo osprey I have a bot which changes the name of a voice channel according to activities. Problem is that it won't work after the ...
998292157150535700
creating a forum post 20 messages
light kettle how do I create a forum post fin a specific channel? (Where do I put the id?)
Invalid Intent? 4 messages
buoyant oyster The code, ```js const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.G...
Impossible to rollback to older Discord.js version ? 7 messages
torn topaz Hey ! I updated and ran my bot to 14.11.0 but there seems to be issues where my shards are respawning even though I put ...
Error: Expected at InstanceValidator.handle 4 messages
urban nimbus I get this error when running my discord.js bot. Source code: https://replit.com/@linusbw/fiesenheld#bot.js Stacktrace a...
Is it possible to register a single command instead of all of them at once? 15 messages
finite mulch s
embed/buttons and databeses 1 messages
hybrid juniper Hello, I have a slash command handler and a button handler ( mycommand.js , mybutton.js). the command send an embed wit...
[FIXED] Max Number of Daily App Command Creates Reached 72 messages
mighty glade Error as title shows but I've never created any command? Just finished following the guide so I'm confused
1113356221962010634
Username update [UPCOMING] 3 messages
plucky pond will stuff like `interaction.user.tag` be removed?
User Linked accounts 7 messages
hardy heath I've been trying to find a way to get the user's linked account username (basically seeing if there's a twitch account l...
Unknown interaction for some commands in only one server 10 messages
queen summit I have a bot that is sharded and is in a couple thousand servers and for some reason, in one server whenever a command i...
Soundboard 3 messages
last relic Is it possible to customize the server soundboard using a client yet?
Detect if command or subcommand? 3 messages
rich sorrel - Using `discord.js@14.7.1` on node `v18.8.0` Trying this code (used to enrich Sentry debug logs): ```ts if (in...
Multiple Interactions from collector 54 messages
charred igloo so i made this function, and for some reason i started receiving same events like 3+ times when button being clicked, i ...
Any way to use permissions for subcommands? 5 messages
devout tartan Title says it all
unable to verify the first certificate 10 messages
placid aspen I haven't been learning nodejs long , I don't know how to fix this problem ,can anyone help me? here is my code and t...
Role not appearing in category after adding it to permissionOverwrites. 30 messages
cerulean ledge I'm creating this just so that I can separate my issue from the others in the <#824411059443204127>. To summarize, my bo...
help 34 messages
I keep getting a weird error 8 messages
rotund tartan I need help with a weird error that keeps popping up
[Advice] Is it a good idea to use multiple discord bot instances over multiple projects? 14 messages
trim siren I have a discord bot which I want access to in multiple node projects. At first I thought of making a global `client` ob...
inherit roles from a channel 6 messages
jaunty crescent this is my current code, the role is created but the permissions not inherited
998292157150535700
Collection<GuildMember>#merge(other: GuildMember) 6 messages
rigid remnant Hey. I am fetching data of two different guilds and need to get a collection where there only is the members who are pre...
Get all guilds that have a owner id of X? 7 messages
ionic wigeon How do I get every guild that have a matching ownerId. I "could" do: ```js const userId = "123456789012345678"; const Gu...
New slash commands are not showing up! 33 messages
uncut jasper Hey, I'm hew here! I recently started making a discord bot using the Discord Docs for the Rock-Paper-Scissors bot, and I...
998292157150535700 986538542350086175
cant edit message after bot goes offline 29 messages
hardy herald i've tried everything that chatGPT and i could think of to debug this. code below raises the error ```js ...
Guild-based commands not being fetched without an ID 5 messages
trim siren Weird thing going on. On another bot, when I use `await guild.commands.fetch()` without passing in a command ID, I'd usu...
Simple questioin 5 messages
marble inlet How can I write three minuses in emed and have them not turn into this?
Limit reactions to one per message 2 messages
turbid root discord.js :discord.js@14.11.0 Node: v20.2.0 I'm trying to make a poll bot based on reactions and I'm trying to limit ...
Display all commands in guild a member has permissions on 36 messages
mint oriole I cant figure it out ``guild.commands.cache.filter((c) =>member.permissions )``
Rate Limit 4 messages
grand bloom Is rate limit reset based on a specific time or does it depend on when you used the code?
Efficient way to fetch members count in a role 12 messages
cloud blaze Is there an efficient way to get the member count in a role. I was thinking `interaction.guild.members.fetch()` but I th...
Checking for role not working 8 messages
help 3 messages
rose smelt Hi
998292157150535700
Fetch ephemeral message 42 messages
jaunty crescent Is it possible to store the id of a message and then fetch it later on in order to delete it? I was able to delete the ...
998292157150535700
Pagination with Mongoose DB 73 messages
median frost I have a command where a user can add like reminders to the database. I have a command that shows the list of reminders ...
Q about external files 4 messages
fluid bison Hey all, I just have a question about running automatic functions in external .js files. I created a file in my bot dire...
Followed guide (Further `client.on` commands not working) 32 messages
zinc willow Hey, so I was following the guide (v14.11.0) (node18.15.0) (https://discordjs.guide/) (Copied the GitHub files) And the ...
How to handle a multi-message slash command? 7 messages
granite nexus Hi all, I am trying to figure out the best way to approach a project I'm working on. I am trying to build a command tha...
How would I do this feature 6 messages
boreal talon Let's say I was making a multi-guild discord bot with a dashboard and wanted the dashboard to have a section called staf...
998292157150535700
setDefaultMemberPermissions() for one of two roles that have same permissions 6 messages
thorny skiff How can I set default member permission to a slash command? I know there's `.setDefaultMemberPermissions()`, but I have ...
Can't login 11 messages
dense summit For some weird reason, it won't even let me login but yet it throws me this error today <:Thinkeng:264703959015489537> ...