djs-questions

13317 threads · Page 188 of 267

401 - Unauthorized error when trying to set permissions on application commands 12 messages
low briar I am trying to automatically set permissions on application commands based on the role or user ID when a command is priv...
SlashCommandBuilder doesn't have a generic method for adding options 20 messages
grim otter Is there a reason SlashCommandBuilder doesn't have a method for adding options with the type as a parameter? At the mome...
InteractionNotReplied when I replied? 8 messages
scenic steppe I am getting `InteractionNotReplied` when I have already replied to the interaction.
Weird error when even trying to run a discord.js file 12 messages
unreal gust using repl.it
Get channel by id returns undefined 18 messages
hard granite Hi, so i got a question, maybe i'm crazy but idk, i try to get a text channel from my server by id using this ```JAVASCR...
Error with embed command. (sorry i am a newbie) 59 messages
winged walrus Hey! (Sorry in advance because I am a complete newbie. Please don't make fun of me.) I am getting this error with djs ve...
Using attachment files in embed 7 messages
sinful heart Hello ! I've encountered some weird behaviour with embed. On my script startup my code will work with some png files but...
Cant Receive Direct Message 3 messages
proven lintel Hey, started learning discord.js since like 2 days. Trying to figure out how to get my Bot to respond to DM's but it jus...
Bot Error 16 messages
verbal cosmos How do I fix the following error?
can't execute command no erros in console 9 messages
viscid raft Error Code https://sourceb.in/T4AWUQJwwH Nothing on the console
bot confuses messages between servers 18 messages
fallow coyote it sends a picture with a description and mention the user, but confuses the servers to which messages are delivered if ...
Interaction has already been acknowledged. 26 messages
faint island const { Client, Events, GatewayIntentBits, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); modul...
.getBoolean 5 messages
thorn hazel Im trying to run something else based on Boolean Option but for some reason there is no boolean geting parsed ```const ...
Best way to find out what user created a channel? 3 messages
inner cloud discord.js 14.2.0 node 8.11.0 I'm trying to find out who created a channel, but the `channelCreate` event doesn't appea...
I made this codebase to fetch top 10 users from server, active one by message, why is it not working 8 messages
chrome yarrow In fact the purpose of my bot is mainly to retrieve a ranking of users, within a period of 30 days, and assigned a role ...
Using slashCommand to modify data in an Embed 2 messages
normal ember Hello there, I got stuck with my new project, how can I connect these two commands together? `warehouse.js` is basicall...
Session Manager 4 messages
paper basalt Hello, is there a way to track session data through a plugin or directly built-in with discord.js itself? With session ...
V14 Get Channel from Slash Commands 14 messages
tired stag Hi guys, I wanted to create a giveaway module for my bot and to create a giveaway I want to use slash commands. The prob...
Catch Error for embeds V13? 53 messages
scenic scaffold Where would I add a catch error for V13 embeds? There are times when code such as this correctly executes and will dis...
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...
@discordjs package
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?