djs-questions

13317 threads · Page 66 of 267

Autocomplete on button click 3 messages
pliant gulch Hi! Can I autofill a command when a user clicks a button on one of my messages? I need text input, and modals aren't gre...
discord.js help 5 messages
plush shell ```js if (message.content.startsWith('hi')) { const last_message = await message.channel.messages.fetch({ limit: 2 }...
typescript error 5 messages
weary leaf ```ts Type 'Omit<SlashCommandBuilder, "addSubcommand" | "addSubcommandGroup">' is missing the following properties from ...
VoiceChannel members is always 0 23 messages
silver light My bot has all the intents enabled in the Dev Portal and programatically (including GuildVoiceStates and GuildMembers in...
Array of objects into embed fields 7 messages
kind salmon Hello, I am having an issue with adding an array of objects to multiple embed fields. The object in question is compris...
object does not work 2 messages
timber spoke It was working when I was using js, but it didn't work when I switched to ts.
node
when I connect to a specific voice channel, I get this Discord API Error 6 messages
lean mesa Hello, I've a problem in fact when I connect to a specific voice channel, I get this error ```/home/container/node_mod...
command in my bot 2 messages
ancient lake When i type help it keeps doing that
node
adding an Emoji to a button getting "invalid emjoi" 9 messages
drowsy coral I am trying to make a simple game of chance where you select a "shell" that something is hidden under. I want to put a...
Rare Error 33 messages
torpid holly ```js [ERROR] Encountered error on event listener "messageUpdate" for event "messageUpdate" at path "/home/container/src...
How to check if message contains images/other files 2 messages
glossy crane My bot crashes everytime it tries to copy a message from me and I attach a file to my message. ```javascript client.on(...
Patch webhook type, ActionRowBuilder issue 5 messages
torpid marsh Hi, I am using the Discord API to patch webhook message using he help of DiscordJS to create components. I'm trying to ...
Unsuccessful implementation of autocomplete with subcommands 12 messages
vagrant rapids Here is the abridged code command file ```javascript module.exports = { data: new SlashCommandBuilder().setName('getne...
how can i send both a message and multiple files at the same time? 15 messages
dawn juniper im trying something like `channel.send("message",{files: res})` but its not working
Question about Commando framework. 9 messages
errant quartz Maybe, I can answer this myself by just googling it, but after some time away from the djs scene I found out that the Co...
Updating bot without shutting it down, 14 messages
dusky oyster Hey so my question is pretty straightforward; is there any reliable/recommended way to update slash commands and other s...
Slash commands not registering after verification 3 messages
unique nebula My discord bot recently got verified, and ever since it hasn't registered slash commands. I was wondering if this might ...
url.js gives error 6 messages
deft moon Code: ```const { SlashCommandBuilder } = require('discord.js'); const fetch = require('node-fetch'); const data = new S...
/reload error 9 messages
deft moon /reload gives an error when i try to reload a command Error while executing this command (inside discord ) Code: ```cons...
Fetch deleted messages by discord upon a user ban 7 messages
twin cave Currently I am fetching all deleted messages which were deleted manually. Unfortunately that does not work when I ban a ...
node @discordjs package
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
i need some help 24 messages
check if content is in dms 8 messages
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?
node
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 35 messages
summer sonnet Have intents set up any reason why this might not be working?
@discordjs package
DiscordAPIError[10062]: Unknown interaction 9 messages
ashen egret ```js await interaction.deferReply(); const embed = new EmbedBuilder() .setDescription(`\`�...
node
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...
node
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?
node
Log images and videos in a discord server channel and send those in my server 2 messages
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...
node
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...
node
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...
node
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...
node @discordjs package
"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 }...