djs-questions

9202 threads · Page 30 of 185

Forum question 1 messages
willow bloom How can I add a tag to a topic? I'm creating them on a forum. Which function should I use
Problem with guild.members.fetch 22 messages
solemn sage For some reason, the code I provided isn't working. I'm not sure why.
How to send a file/attachment from an Attachment option on SlashCommand? 11 messages
pure vapor I've looked up that topic the the guide but can't find anything on how to send an attachment/file that I get from a slas...
1150878580193116250
TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream. 2 messages
fickle bluff my bot has been running fine in production for years but today i'm getting this message on startup with no changes of an...
1150878498534199426
Token is correct but still getting "Invalid Authorization Header" 3 messages
cunning elbow See title. I'm trying to `client.login(token)` and I've tried both `"Bot TOKEN"` and `"TOKEN"`, both give the same error...
1150878580193116250
how to handle interactions through interaction URL, no gateway 9 messages
rare wharf Hey, I haven't made bots in quite a while, so im kinda lost on how to do this in discordJS. question: - How do I use di...
1150878580193116250
Keeping A Channel Polls Only 13 messages
wanton plinth I'm trying to make a specific channel polls only. Since Discord doesn't have a permission set for this I've setup my bot...
1150878580193116250
(process:24892): Pango-WARNING **: 11:03:18.119: couldn't load font "Lato Not-Rotated 25px", falling 3 messages
magic cargo <#1115775988857581668> I can't download the font to my application ```bash (process:24892): Pango-WARNING **: 11:03:...
Can't install dependencies on discord.js repo 10 messages
visual narwhal Hi, I want to install dependencies to execute packages of discord.js repo, and I'm following the tutorial written on htt...
998292157150535700
how can i do customize bot with d.js 6 messages
dusty lynx How can customize a bot's pfp which is not my creation with using d.js bot
I can't run any d.js commands. 43 messages
finite surge I'm using https://discordjs.guide/creating-your-bot/slash-commands.html#individual-command-files to learn about d.js. I ...
1150878580193116250
SlashCommandBuilder defaults 6 messages
tiny bone So i have a really simple question, Is `SlashCommandBuilder` by default set to all contexts and integration types.
How are the documentation files from .api.json converted to .json? 4 messages
visual narwhal My question is simple, how are .api.json files like this https://github.com/discordjs/docs/blob/main/discord.js/14.16.3....
998292157150535700
Only Slash Commands Not Responding, Showing "The application didn't respond in time" with No console 13 messages
rocky sand I've tried everything I could, including regenerating the Token and creating a new discord.js project from scratch. Out...
1150878580193116250
Entitlement Update event not received after cancelling subscription 3 messages
raven oriole I'm currently testing subscriptions to my bot, and when I create a subscription an ENTITLEMENT_CREATE event is fired, I ...
1150878580193116250
Posting img with REST 4 messages
normal forge I may be approaching this in an inefficient manner, so while I am asking specifically how to post an image using REST, I...
1150878498534199426
Bot Not Updating Voice Permissions 2 messages
wanton plinth I'm trying to have an event voice channel that is locked(`everyone` cannot connect or speak), but when an event is live ...
1150878580193116250
Database connection 12 messages
pale moss Hey I have a mysql database, I can connect to it and run CRUD actions. But I feel like the setup is wrong. I have this...
1150878580193116250
"cannot redeclare block-scoped variable 'data'" 7 messages
humble heath do i register all of my slash commands in ready.js? i had no issues with the following: const { Events } = require('dis...
why does my bot does random things 5 messages
gleaming copper my bot does some random shit idk why there are no errors idk why its doing it
Unknown interaction 35 messages
runic badger Hey! This is a bit of a weird issue, the code that wraps my dropdowns is quite difficult to pick apart on the backend to...
1150878580193116250
I have an error that i cannot solve. 5 messages
sullen merlin This error is just a console error but it works fine for me to the but, there is obv a problem. My code: https://sourceb...
Message periodic scanner 6 messages
pale moss Hey! I am trying to figure out if I there is a better way to handle my case: User can create suggestion on my server. ...
1150878580193116250
Can discord.js store snowflakes as bigints instead of strings? 3 messages
cunning elbow See title, I couldn't spot any options for it in the docs and I'm curious if it's possible.
1150878580193116250
How to differentiate between the possible errors when DMing a user? 21 messages
pure vapor I want to do send a DM to a user and handle the errors. I know that there is more than one possible error, but not how t...
1150878580193116250
Error that i cannot fix. 10 messages
sullen merlin I know that i asked help for this once but i still need help. This is my codes: index.js https://sourceb.in/LrDkNyzADH c...
Application command's options 6 messages
flat sorrel how can i get (for example) the name of the command, or the value? i know how to get the data, but i can't figure out on...
duration is null or undefined 12 messages
hearty rain when i do /addreminder 1s it just still says its undefined. ```const { SlashCommandBuilder } = require("discord.js"); c...
1150878580193116250
Bot not receiving DM's 8 messages
tribal magnet This is my bots code. ```js console.log(message) // If the message is from a bot, do nothing if (messag...
1150878580193116250
register commands for multiple servers 21 messages
hearty rain i got the code for my command register file from the docs. there you need to input a guild id, but what if you can add m...
1150878580193116250
error 6 messages
queen oar what is this error mean
Problem with buttons 9 messages
worldly crater I have this code, and most of the time (about 99%) it works without any problems. However, just a moment ago, the bot up...
1150878580193116250
Application not responding 38 messages
stoic stone Hello everyone I am following the discord.js guide on creating a discord bot and for some reaosn after following the ste...
ChannelSelectMenu 10 messages
granite mortar Does channelselectmenu support guildvoice channels ?? Thanks for help
1150878580193116250
Idk why am i getting this error while running bot for first time 12 messages
livid fable C:\Users\Pc\Desktop\Discord.JS Bot Economy\node_modules\discord.js\src\client\websocket\handlers\READY.js:17 client....
1150878580193116250 998292157150535700
Rtc region null 4 messages
dusty hollow https://cdn.uira.xyz/acoustic/uEPKgU.png only happens when u select a automatic region aslong as u assign a region it ...
Sharded Discord.js bot resets to initial presence status 15 messages
vernal siren I wrote a Discord.js bot in NodeJS that uses discord-hybrid-sharding to spawn my bot.js. In the bot.js code below, you c...
1150878580193116250
I got an error that I dont understand 11 messages
sullen merlin This is my codes: index.js https://sourceb.in/LrDkNyzADH commands\contest.js https://sourceb.in/BO3kmjr7MH And the error...
Range Error Shard 0 not found 11 messages
vague valve I'm getting a shard 0 not found error on the live bot, but I can't seem to replicate it in my dev environments. the full...
1150878580193116250
400 Bad Request (error code: 50240): You cannot remove this app's Entry Point 3 messages
tepid helm I'm getting this error on my discord bot, but I don't understand it, and the bot commands don't update on the server, al...
Button 5 messages
iron violet Hello, I have programmed a command that allows you to enter an embed using a button. However, after a certain time you c...
1150878580193116250
Embedded Platform 21 messages
scarlet geyser Discord has decided that it will be a good thing to not document the Embedded platform which infact is PS4 (and more but...
Incompatible embeds 3 messages
feral adder Hey, i need to copy my previous embed, but when im try to do this typescript give me error: ```Argument of type 'import...
998292157150535700
Bot Appearing Offline on Some Shards 60 messages
lusty sky I’m running a bot on 635K servers, using `discord-hybrid-sharding` and `discord-cross-hosting` for efficient shard manag...
1150878580193116250
You cannot remove this app's Entry Point command in a bulk update operation. 109 messages
tardy prairie i need help idk what this means plz someone help me ur my only hope...
sharding with workers 15 messages
green radish ```const bot = new Client({ shards: "auto", intents: [ GatewayIntentBits.Guilds, GatewayIntentB...
1150878580193116250
userinfo bot 60 messages
faint hinge does anyone here know how to make a command for userinfo for bots on discord?
How to mention a guild 3 messages
crisp bone Is there a way to mention a guild like you would mention a user or a channel etc.? For example: <#222197033908436994>
1150878580193116250
I have an error that I cannot solve 14 messages
sullen merlin My code is: https://sourceb.in/nXRmM0SEUW And the error is: at Task._execution (D:\atermibot\index.js:35:36) at ...
anyone know why I get this error? 6 messages
winged breach DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users\Adam\.vscode\Rythm\Rythm\node_modules\@discord...
1150878580193116250