djs-questions

13317 threads · Page 84 of 267

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...
node
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...
node
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...
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...
node
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
node @discordjs package
Images in slash commands 19 messages
chilly wing Is it possible to put images when sending a slash command ?
node
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? 4 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....
node
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...
@discordjs package
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...
Premium Collection 14 messages
jovial gust So, I'm kind of new, how do I make it so when I run a command that once I put an ID in, it adds a user to a collection. ...
@discordjs/rest with Nextjs 7 messages
pliant sierra I'm using @discordjs/rest in my Nextjs app inside app api folder, it works on dev perfectly fine, but when I try to buil...
@discordjs package
Vocal status 6 messages
uneven wave Hi, I'd like to know with V14 if it's possible to change the status of a voice channel, and if so, how? Please help me.
node
voice.setRTCRegion(null) not working 3 messages
unkempt tartan HI, I have this code to change the region and it works perfectly except the null option ```ts const buildSelectMenu = ...
Any possible big changes from 14.8 till newest 2 messages
scarlet bronze Ayo, i did an instant upgrade, is there any big, mind braking stuff that changes till now?
bot creation 3 messages
tranquil idol i got a error cannot read prpoeries of undefined (reading flag) i saw in video he is using discord js 14 and he didn't ...
Set GuildScheduledEvent image 3 messages
queen glen What's the easiest way for me to add/change the cover image of a Guild Event?
How to install discord.js on google drive? 3 messages
ionic gazelle Sorry, I am new to js, so i dont know how to install packages. ive tried using nmp within vsc terminal, but it didnt wor...
node @discordjs package
Select Menu error with Typescript 3 messages
kind talon ```ts const select = new StringSelectMenuBuilder() .setCustomId("year") .setPlaceholder("Année scolaire") .a...
node
i want help 25 messages
snow marten what i do
Is there a way to detect when the server pfp image changes? 5 messages
untold imp I was wondering and could not find anything about it
After restarting Buttons dosen't work 57 messages
Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMes 43 messages
humble sierra hey! I have error in TypeScript and Discord.js that says "Property 'getUser' does not exist on type 'Omit<CommandInterac...
node
Cache on edit message (?) 27 messages
frosty mulch So I've noticed my bot's memory goes up over time, and narrowed it down to this line: ```dashboard = await oldDashboard...
Bot not able to login. After starting other sample code, logging in with same token, login possible 10 messages
daring zinc Hello there. I'm having a weird problem for a few months now. I also asked here about it an never got it resolved yet. I...
Multi Guild Bot 10 messages
kindred field How would I start developing a multi guild bot? For example if everyone of my users want different welcome messages or p...
Updating Channel Name 4 messages
civic drum Hi im trying to update the channel name every 10 minutes for the server status. But if he is trying to set the name he c...
How would I automatically delete a Select Menu. 4 messages
tribal patrol I'm currently trying to automatically delete a select menu once an option has been selected. How would I do this? Thank...
Missing Access 5 messages
vale ether I have an error in my bot. I already invited the bot with bot and applications.commands and it doesn't work, and everyth...
node
is there a way to enable slash commands to work from the discord overlay? 6 messages
ebon patrol Like could I potentially have a message filter in an event that captures someone typing it from the overlay and then tri...
Presence Activity with dynamic data 29 messages
strange yew Hi, I've seen that with some games when someone is queuing for the matchmaking, it shows a timer that is up to date at ...
node
Embeds pagination not working 10 messages
proven drum ```js const { EmbedBuilder, PermissionsBitField } = require("discord.js"); const Server = require("../../Events/Schemas/...
Cooldowns not correctly working 9 messages
warped trench I have attached the hastebin code. I have the commands working however it never puts the command into cooldown and I can...
Emit custom event on button press? 7 messages
rain pine As title says, I was wondering if or how you can emit a custom event when hitting a button. Else it'd be interesting ho...
How do I get Guild ID By interaction or client? 6 messages
slate glen How do I get Guild ID By interaction or client?
Music Bot question! 14 messages
spare minnow Hiya, gonna be completely honest here am not a dev, but... Looking into making/using a music bot on an external host ca...
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'Guilds') 29 messages
brisk monolith Help with code from GPT, im a noob and trying to bite off more than i can chew i think. The error im getting is on line ...
Is there a way to make a discord bot check if another bot is a verified bot? 3 messages
hardy linden For example lets say I add a verified bot like MEE6 and my bot checks if its verified however if i add another bot that ...
'BitFieldInvalid' 5 messages
left grove This is the code, I hope somebody could help me const { Client, GatewayIntentBits } = require('discord.js'); const clie...