djs-questions

9202 threads · Page 65 of 185

Bot status & guild count 7 messages
deft moon How do i set the bot status to something like WATCHING {guilds-the-bot-is-in} servers
Bot failing to create thread 9 messages
gaunt moss My code I can see that every time that bot gets online I get the message ``Pull-Request#8735 is online`` but it does not...
apps 4 messages
supple urchin yk when u click on a person it shows like “apps” and like some options with bots how do i do that?
Send dm from command file 5 messages
nocturne plank Im trying to send a dm from a command file but when it runs it errors ``` ReferenceError: client is not defined ``` Th...
Getting "ValidationError > s.string Expected a string primitive. 8 messages
glossy falcon 0 clue to be honest. https://sourceb.in/yHA8JTUokn
how can i check if my bot has registered its commands in a guild? 9 messages
dawn juniper im looking for a way to synchronise my bot to all guilds its present in - after a potential situation where someone add ...
ChannelPinsUpdate - async 9 messages
dusky iron Hi, what should i async so i can tag member, channel, channel ID and pinned message ID in the embed?
1150878580193116250
Activity doesn't change 38 messages
hazy sand ```module.exports = (client) => { console.log( `Ready to serve in ${client.channels.cache.size} channels on ${clie...
DJS 14.12.1 vulnerabilities? 3 messages
idle pilot I'm trying to make my first discord bot and i was following it until it told me to run "npm install discord.js" which i ...
MessageCreate event not firing 34 messages
summer sonnet Have intents set up any reason why this might not be working?
998292157150535700
DiscordAPIError[10062]: Unknown interaction 9 messages
ashen egret ```js await interaction.deferReply(); const embed = new EmbedBuilder() .setDescription(`\`�...
1150878580193116250
Type error making a select 9 messages
wispy tapir I was trying to implement a select as I have shown in: https://discordjs.guide/message-components/select-menus.html#buil...
1150878580193116250
How can I loop a M3U file in a vc? 3 messages
past valve Hello, i am wondering how i can have my bot join a specified vc when somebody joins it and then start playing a .m3u fil...
Wrong guild.memberCount? 12 messages
shadow notch Hi, There's any reason why in a 9k users server this, sometimes, return a completely wrong user count? ```js // discord...
DM rate limit 4 messages
marble crown I'm writing a bot that will send notifications to users about events in the game. They are different for each user. I'm ...
Intents 3 messages
thorn stump hey, how to fix this?
1150878580193116250
Discord Status fetcher with guild? 6 messages
toxic whale Hello Ya'll, How can I retrieve and display the current activity status of myself (as guild member) on my website? I am ...
NPM I 2 messages
icy jackal when i do npm i to install modules it gives me a big error can you help me here's the bot but it does this to me with e...
Question about getting a user from his ID 24 messages
lone quartz In short I get the userid from the database with mutes and pass it to const member = guild.members.cache.get(row.id); b...
token error 25 messages
inner hollow he umm everything is working fine until all i did was add a comment and then it says token invalid
Client disconnects after ready, takes 1-2 minutes to reconnect every time 5 messages
wintry mango The full debug log is attached below After restarting my Bot I get a ready, then all shards seemingly disconnect and af...
1150878580193116250
how to create /leave command i know how to write /join command 34 messages
loud eagle here is the code for join i wan t leave command same like join command ```const { SlashCommandBuilder } = require('disco...
1150878580193116250
Fetch the old iconUrl in guildUpdate event 14 messages
uneven reef I’m trying to implement a feature that prevents from changing a guild icon. But I’m encountering an issue because in the...
1150878580193116250
Trouble with fetch roles in command 5 messages
lone quartz In that code i'm trying to get the cache role of the user on whom the command was used, but i get the error: 26.02 15:33...
Discord bot SKUs 50 messages
dusky iron Hello, i have two questions. Soi just added Monetization to my bot (SKUs) and i'm wondering if its possible to add like...
1150878580193116250 998292157150535700
"I am entering slash commands, and every time I start, I get this error. What can I do to resolve th 10 messages
I don't really understand the registering slash commands part of the guide 10 messages
quartz venture It says to put this code```javascript const { REST, Routes } = require('discord.js'); const { clientId, guildId, token }...
Sorry if this is off topic. 1 messages
lone quartz Sorry if this is off topic, I would like to ask you to evaluate the code and, if possible, suggest what to work on. ``` ...
My Bot isn't Deleting Archived Threads 8 messages
bold pond When a Thread is closed or archived, it cannot delete the thread. It only deletes unclosed or active threads but I'd lik...
how to know the channel id of voice channel so that i do not need to put my channel id manually 75 messages
loud eagle in my code while using joinvoicechannel function it asks for channel id is there any way so that i do not need to put my...
1150878580193116250
Interaction reply time limit 6 messages
golden pilot Hi all, I'm currently writing a discord bot command that needs to ping the API which ping the DB as well as a Redis cach...
how download discord j.s. 3 messages
feral marten How download discord j.s
1150878580193116250
Discord Presence 15 messages
dense kernel ``Discord.js Version 14.14.1 NodeJS Version: 18.15.0`` Been working on my logs for discord trying to get a presence log ...
Starter 1 messages
ancient lake I need a code that handle errors , i am getting this error
1150878580193116250
alvin 1 messages
queen egret Alvin
Converting the Command Handler and the Command Deployer to use ES modules 12 messages
paper elm I am attempting to convert my project to an ES Module instead of using CommonJS. I've already changed imports from `requ...
1150878580193116250
If I crate a /command 10 messages
lapis grail there are commands after this like /command command1:10 how the command1 is called tyyy :3
Starter 2 messages
TypeError: Cannot read properties of null (reading 'createMessageComponentCollector') 9 messages
night pagoda I have this error `TypeError: Cannot read properties of null (reading 'createMessageComponentCollector')`
Channel Question 2 messages
gloomy flame Is there any way that when someone open a ticket for example change the channel he see into the ticket without user have...
How to defer a button without losing the loading animation? 8 messages
burnt grotto Hello, I have a button interaction which will take some time to process. Is it possible to use `deferUpdate` while stil...
1150878580193116250
Bot Custom RP 4 messages
alpine salmon Can I set up `Custom RP` for my bot?
Is it normal that the latest version of discord.js has vulnerabilities caused by undici ? 8 messages
hearty arch Like you can see in my attached file, undici is not up-to-date, is it normal ?
998292157150535700
Why does it just say "application didn't respond"? 18 messages
quartz venture ```javascript const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const Utils = require('../../utils');...
Automatic reactions 30 messages
dusky oyster so here I am, with another query. How would I go over making it so upon modal submission there would appear two reaction...
How do I make the description and so on of the embed an option when putting in the command 4 messages
languid tiger const { SlashCommandBuilder } = require('discord.js'); const Discord = require('discord.js') const data = new SlashComm...
TypeError: Cannot read properties of undefined (reading 'get') 5 messages
quartz venture ```javascript const { SlashCommandBuilder, EmbedBuilder } = require('discord.js'); const Utils = require('../../utils');...
Doesn't fetch the channel, why? 12 messages
quartz venture ```javascript const channel = client.channels.fetch("1198299044582281216", { force: true }); console.log(channel.name);`...
It doesn't fetch the channel 3 messages
quartz venture ```javascript const { EmbedBuilder } = require("discord.js"); module.exports = async (client) => { console.log("Loa...
I wanted to ask for everything I need for this command 11 messages