djs-questions

9202 threads · Page 60 of 185

This interaction failed 3 messages
final sandal ```javascript export default { data: new SlashCommandBuilder() .setName('generate') .setDescription('Generate ...
Is it possible to send a DM from bot to another bot 8 messages
round beacon Hi. I'm trying to send a DM from a bot to another bot. I'm getting error: `Cannot send messages to this user` Both bots...
Interaction Button Collector Not Working 6 messages
wild mesa https://sourceb.in/G962dmbTid I have this button interaction collector that completely gets skipped over. And this piece...
[14.14.1] Check if awaitMessageComponent hit timeout or some other code failed 6 messages
stray vault Would it be possible to detect whether awaitMessageComponent failed because of the timeout, or some other error occurred...
1150878580193116250
How do i encrypt my token? 55 messages
glossy turret I've seen some users hide their token, can someone tell me how to do that? when i run ,eval session.token it sends my to...
How can I get the content of the message that the bot sends? 6 messages
elfin bronze <ref *1> Message { channelId: '1221859309558698054', guildId: '1220786860604002446', id: '1221863417674203277', ...
Bot not able to send some emojis from another servers 25 messages
warm galleon My bot is not able to send some emojis even tho its in the servers the emojis r in, it just sends `:emoji_name:` instead...
Polls 2 messages
spiral inlet Hey how can I make the new polls using rest?
998292157150535700
how to add in thread channel tags? 3 messages
formal merlin Hello, how to add in thread channel tags? https://sourceb.in/qOJl0dgGFI
Quick Question 5 messages
silent pewter What is the thing to make it say "In a hour" or "In a week" and so on
Error with a invalid form body 4 messages
minor narwhal I keep getting this error ```js There was an error: DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_BAD_LENGTH]...
error with the handler and anti-link command 3 messages
vital pollen so, i get that error: https://srcb.in/VgjjUb0igW I deleted and edited some files and found that the error was because ...
Could anyone identify what this is named is this like a hover tooltip? 3 messages
i need code help 9 messages
mental granite ```js pm ERR! code ENOTEMPTY npm ERR! syscall rename npm ERR! path /home/container/node_modules/debug npm ERR! dest /hom...
broadcastEval() and Typescript 27 messages
upbeat sonnet A bit at a loss here, trying to use .broadcastEval to run a function on all shards, for this function I would like to ad...
1150878580193116250
🚨・Unhandled promise rejection 15 messages
topaz pilot ``` Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready. at Shard.onDeath (/home/cont...
1150878580193116250
Put token but say invalid 48 messages
untold socket I put the token in first line in index.js but he say token invalid
998292157150535700 1150878580193116250
error 23 messages
hardy sage ```js const { SlashCommandBuilder, PermissionFlagsBits, Client } = require('discord.js'); const { EmbedBuilder } = requi...
1150878580193116250
where is the error 70 messages
hardy sage ```js const { SlashCommandBuilder, PermissionFlagsBits, Client } = require('discord.js'); const { EmbedBuilder } = requi...
1150878580193116250
Anyone have any clue what I am doing wrong 20 messages
zinc hull ```js // Get the mentioned member from the message const member = message.mentions.members.first(); ...
1150878580193116250
Request to use token, but token was unavailable to the client. 58 messages
obtuse cave ```js const { Client, Intents, MessageEmbed } = require('discord.js'); const fetch = require('node-fetch'); const client...
1150878580193116250
Install Error 3 messages
narrow breach I get this error when I install discord.js and when I enter `npm audit fix` it does not fix itself. Do not understand wh...
Caching 48 messages
quick fjord Idk what do with caching anymore, I tried sweeping and tbh it doesnt work. I removed the call of messagecontent intents ...
start up error 4 messages
topaz pilot Every time I run my bot I get an error message saying ``` Error [ShardingReadyDied]: Shard 0's process exited before it...
1150878580193116250
I'm completely new to js and want to start by making a discord bot. 6 messages
dire pivot I'm completely new to js and want to start by making a discord bot (which I need anyways). I'm not sure where to start t...
embed not working sometimes on random cat image command 5 messages
random vapor I have this command that sends a random cat image from an image link. Sometimes they arent embedding and sometimes they ...
1150878580193116250
GuildMemberRoleManager has no properties or methods 4 messages
vital flicker I am retrieving a subcommand member option and for some reason member.roles has no properties or methods. Why is this? `...
Premium function 6 messages
light owl Hey, I added the premium feature of Discord to my Discord bot, how can I now find out in Discord.js whether the server h...
ValidationError: Expected the value to be an object, but received string instead 17 messages
river dust heyo, why does it dont lemme using strings? 😩
1150878580193116250
Error in translate command "Unknown interaction" 16 messages
random vapor Hello, this is a code for a translate command via contextmenu command, i cant figure out what in the code is causing thi...
1150878580193116250 998292157150535700
Will djs support the new polls? 7 messages
ancient beacon Like if someone creates a poll we can delete it
998292157150535700 986538542350086175
Still get this error 4 messages
old haven I dont know why I always get this error DiscordAPIError[50035]: Invalid Form Body name[BASE_TYPE_REQUIRED]: This field ...
TypeError [ColorConvert]: Unable to convert "16705372" to a number 19 messages
misty stirrup Hey, I am using discord.js@14.15.0-dev.1707091779-f401cff3f, and when importing Colors from discord.js and using .setCol...
986538542350086175
Issue trying to run 'node . run test' anyone know how to fix? 3 messages
How can I get user’s guild nickname from a slash command? 4 messages
elder plover displayName doesn’t return a user’s server nickname, and ’user’ in a slash command doesn’t include nickname property. H...
4 Events not firing 6 messages
spiral inlet Hey any idea why these 4 events not fire? I have 37 other events that work fine ```autoModerationRuleDelete, autoModerat...
New to Discord.js 7 messages
proven adder Hello, I'm new to using Javascript to code a Discord bot (I'm also new to using Javascript to code, this is my first exp...
i need help fixing this error for node.js 16 messages
upbeat flicker does someone mind helping me out? i keep getting this error and get get it resolved Debugger attached. Waiting for the ...
1150878580193116250
How long can a bot edit a message for? 2 messages
glossy turret Persay, if I wanted my bot to edit a message from months ago, would it be able to? Hint: i'm only asking so I can make ...
How can I stop people from adding other users to a thread using @Username ? 2 messages
old haven .
Send me dm on every message 7 messages
deft moon I want the bot to send me a dm with the user name, id and the message. I just want 1 index.js file and no other commands...
Send Voice Message through bot 8 messages
zenith steeple How I can send and receive voice message through bot api?
question about liability 10 messages
little forum Hello, I have a question are there any regulations regarding creating bots on discord? Because I was wondering what if ...
Event listener breaking upon using command 15 messages
compact geyser Hello, my bot cannot complete a command properly and as far as I can tell in the node console is that something is break...
DiscordAPIError[10062] With no consistent reproducibility 15 messages
gloomy ingot Good evening! Thank you for taking the time to read my post, I am very much a beginner learning/teaching myself JS us...
Diseact: Implement JSX to construct bots! 2 messages
fierce fjord 🚀 Introducing Diseact: Revolutionize Discord Bot Development with JSX! Say goodbye to cumbersome code and embrace simp...
Event Properties missing? 10 messages
compact geyser Hello, I have gotten essentially all the base components of my bot to work at this point, but when booting up the only t...
How to create multiple .addStringOptions 7 messages
lost sinew Needing to create multiple .addStringOptions, but it is not coming through after I refresh commands and start the bot, i...
Premium only command 8 messages
deft moon I want to make a command that checks if you have the premium role in a specific guild (i already added that guilds id to...
User Apps Permissions 40 messages
shell anchor Hey, Do you know if they will add the possibility to add permissions to user apps ? Like the possibility to connect an...
1150878580193116250