djs-questions

9202 threads · Page 182 of 185

How to send the entire dictionary? 10 messages
river spear Hi, so I send a dictionary to a function in a different file. ```js return interaction.reply({ embeds: [utils.Error(`${i...
Anyone knows why my interaction isnt working? 9 messages
west iron .
How can i send buttons to an message without using an ActionRow 3 messages
west iron How can i send buttons to an message without using an ActionRow
Can't send message to user using client.users.fetch 18 messages
junior seal Hey there! I was trying to send a message to a user using their ID but I am getting an error, I am using VS Code and Dis...
Editing embeds 3 messages
west iron How can i edit an embed? i mean , after i send the embed , is it possible to edit it?
User permissions when using select menus or buttons 5 messages
stray tusk Within my commands folder, I am making a select menu and upon using my interactionCreate handler, I want to only update ...
deleting bot responses 4 messages
willow cypress delete bot messages if discord user delete his messages like if someone use credits command and bot respond with 3 mes...
Feasibility of updating user voice 3 messages
fallow cliff For context, I am currently planning out some features for a bot I am working on but don’t have access to my workstation...
Loop error on client.on 8 messages
granite sand ```js client.on('message', message => { while(turn < maxturn) { console.log(turn) ...
Anybody know how to fix this? 3 messages
mossy relic anybody know how to get a message.reply? thing? ```js let message = message.reply({ content: "H...
Interaction Failed to Reply 17 messages
night needle the bot just saying interaction failed to reply everytime https://pastebin.com/0vaxjvNq 49-61 i think is issue, im not s...
Pick up message content after button click 6 messages
vocal heron The person pressed the ban button and the bot should take the following message into a variable please help me to implem...
Im new to Node.js and im not sure what this means some help would be nice 2 messages
half badge TypeError [ClientMissingIntents]: Valid intents must be provided for the Client. at Client._validateOptions (/home/r...
Is there a performance difference between the two examples 4 messages
near otter I suppose that's more of a js question but I was wondering if there's any difference between making an array and putting...
Syntax error in website 5 messages
wicked scroll Isn't the ! inside of the string?
I'm Getting This Error 19 messages
jolly oracle So I Used A Code Snippet So Whenever My Bot Joins A Server It Can Send Custom Message On Joining Below Is The Code
If the channel name starts with X send embeds 6 messages
hot zephyr Im new to discord.js and i need it to where if a channel is made starting with x it sends some embeds
Anyone knows why my interaction for my modal isnt working? 4 messages
west iron ```const { CommandInteraction, ApplicationCommandAutoComplete , InteractionType, Events} = require("discord.js"); modul...
deferUpdate while waiting for api response 4 messages
coarse sigil After the initial CommandInteraction, I .deferReply while I wait for an api response, then I .editReply once it's comple...
Getting the length of an MP3, OGG, FLAC, WAV file posted in message 14 messages
rigid tendon Hi all, I'm trying to add the functionality to my music bot to allow it to play files uploaded to the guild. I've got it...
998292157150535700
RangeError [EMBED_FIELD_VALUE] MessageEmbed field values must be non-empty strings. 33 messages
scenic scaffold Wrote code trying to log message edits in discord. Getting the error the title suggests. ``` client.on('messageUpdate',...
Update original Interaction reply from ButtonInteraction 28 messages
coarse sigil How can I edit the original interaction reply from within a ButtonInteraction handler?
displayAvatarURL options 6 messages
lone zephyr hello how are you ?
Can you help me with this error? 7 messages
wild raptor I get this error and I don't know how to fix it. ```js TypeError: Cannot read properties of undefined (reading 'ActionRo...
Parse emojis to string 4 messages
glossy moth How do I parse emojis (both unicode and custom) to their string representationg (i.e. \:test_tube\: \:FeelsBadMan\:)?
i want to send dm message to specific user, how can i do it 7 messages
amber pond ```module.exports.run = async (discord, bot, message, args, p) => { client.users.send(`${user.ID}`, 'content'); }...
How can i make this code not be case sensitive? 19 messages
west iron ```async autocomplete(interaction){ const focusedValue = interaction.options.getFocused(); ...
Discord (closed) bot gives error 15 messages
little canopy hello friends of the djs disocrd, i was making a music bot and everything worked fine, execpt yesterday my bot randomly ...
Bot that joins server for you 5 messages
weak kestrel How do you make a bot that connects to your account and join server for you?
Invalid string option 9 messages
unreal stream i want to add a space in setName I know myself that I get an error but is there a way to still use a space
is it possible to export the value option string from slash command to select menu different files? 6 messages
urban belfry if possible, how?
Requiring a module 5 messages
shy dawn I am trying to have each command organized in a separate file but I try to require the index.js file and it never works....
How can I take the user's text into a variable after pressing the button? 2 messages
vocal heron help me ``` const collectorban = interaction.channel.createMessageComponentCollector({ componentType: Compo...
Autocomplete 46 messages
west iron Anyone knows how can i do this ? in my autocomplete im limited to 25 choices and if the user dont type anything theres j...
What's the best way to let guilds add their own guild commands on dashboard? 1 messages
obsidian forge As the title explains I'm curious what would be the best way to let guilds add their own guild commands on a dashboard? ...
did i do something wrong? 5 messages
lethal spade why doesnt ot work when i do .username after it
how to add a role from a user ID and a role ID 17 messages
craggy saddle I would like to assign role using user ID and role ID, but in my research I could only find the following example. ```js...
fetch automatically adds to cache? 3 messages
austere flame does `RoleManager#fetch`, after being resolved, add the roles to the cache automatically?
new Discord.Bitfield() 19 messages
sharp smelt I have no idea how that works, but I'm trying to give intents
Visible choices 2 messages
west iron How can i show limited ammount of choices at the same time?
Can't Register Slash Commands 3 messages
coral trench This might be the wrong place to ask this, let me know if it is, but... bear with me I was developing a my bot to use /s...
Collection 0.7.0 and Builders 0.16.0 Deprecated 10 messages
grizzled wolf I did `npm update` and it warns me that `@discordjs/collection@0.7.0` and `@discordjs/builders@0.16.0` are deprecated. I...
25 choices 28 messages
west iron is there a way to add more than 25 choices into an option?
Autocomplete not working 10 messages
west iron ```const { SlashCommandBuilder , ButtonBuilder , ButtonStyle , ActionRowBuilder , EmbedBuilder, messageLink, ModalBuilde...
Is it possible to send a Buffer canvas to embed.image.url? 9 messages
west gyro I'm trying to display an image into embed that is a canvas Buffer. Here's what my code looks like.
can't understand promises 2 messages
exotic summit I'm trying to find a way to iterate through my list of guild members, and get their display_names. ```js const { SlashCo...
undici causing random crashes 9 messages
viral star This is possibly caused by bad internet but my bot is randomly crashing with a RequestAbortedErrors, I post the error in...
998292157150535700
ReferenceError 50 messages
modern oyster So I got this multi-guilded welcome system and I wanted to add a custom message so everyone could use different welcome ...
Interaction type not defined 12 messages
west iron ReferenceError: InteractionType is not defined at Object.execute (C:\Users\luizs\Documents\Discord Bot\Events\Intera...
Having issues with intents 8 messages
iron python How do i layout intents? This clearly doesn't work but idk what does (im new to discord.js) ```const Discord = require('...