djs-questions

9202 threads · Page 145 of 185

Trying to start a scheduled event 11 messages
coarse sigil I'm running into an error when trying to start a scheduled event: Error: ``` DiscordAPIError[50035]: Invalid Form Body ...
Bot is not receiving messages after a while 3 messages
soft palm I am using the `messageCreate` event and registering the handler with `client.on("messageCreate", function (...) { ... }...
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'file-type' 21 messages
brave pewter `I get this error and dont know how to solve this.` ```Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'file-type' im...
Right Command Configuration 48 messages
sick trellis I would like to have the description input option behave similarly to the option (containing cross after it, it could be...
Do I need to cache guild.members.roles to check permissions? 8 messages
trail cedar In my cache manager I have `GuildMemberRoleManager: Infinity` but I don't need this. There's only one role my bot needs ...
Interaction aint saving 3 messages
indigo crown ```js // ---> Adding the needed collections const commands = []; //client.commands = new Discord.Collection(); // Place...
High usage leak after updating to v13@latest (13.14.0) 45 messages
stark lynx Does DJs have any known usage leak? Because after updating djs v13 to latest after 5h the usage go over 26gb ram and 60%...
This code no longer works when it worked before! 4 messages
grizzled delta I don't understand why the code doesn't work anymore, the bot joins the room, but no sound comes out, no apparent error....
Error while building with tsc 4 messages
open geyser Hello Guys, i'm having this error after updating from v13 to v14 when building with tsc: ```SHELL $ tsc node_modules/dis...
Discord.js Cannot use .send 8 messages
violet lintel When command ran, errors. Code: ``` async execute(interaction) { const db = admin.database(); db.goOn...
how could I use autocomplete with mongodb 6 messages
night needle I got no clue where to start
[GuildMembersTimeout]: Members didn't arrive in time 39 messages
ionic flax Hi I'm getting an error whereby we receive: "Members didn't arrive in time"   ```Members didn't arrive in time.\n at Tim...
DirectMessages intent messing with MessageContent 24 messages
rotund tartan ```js let MessageContent if (message.embeds.length > 0) { if (message.embeds[0].image) { if (!message...
TypeError: Cannot read properties of undefined (reading 'channels') 55 messages
signal rock pls help code: https://hastebin.skyra.pw/ayomarexar.ts error: https://hastebin.skyra.pw/rolobikima.php
TypeError channel.isTextBased/channel.isText is not a function 0 messages
robust marsh - `v14`: `npm i discord.js@latest` - `v13`: `npm i discord.js@v13-lts` ## **What happened?** > Discord has rolled out ...
how do you get access to your instantiated `discordjs.Client` from imported files? 12 messages
fathom cliff I can't do `export client` and import my main file, because that would create a circular dependency. how is it usually...
Error 7 messages
indigo crown See image of error
How can I prevent the messageDelete event from emitting if the bot deletes the message? 23 messages
regal pewter I dont want emit the messageDelete when i use message.delete()
Get author of thread channel 3 messages
pulsar fulcrum Hey ! I wanted to know, I didn't see how cn I get the author of a thread (ThreadChannel). If anyone knows how, I would ...
TypeError: channel.isTextBased is not a function 3 messages
gaunt ether For some reason started recieve this error on bot startup.
invalid form body 7 messages
spiral steppe There was an error: DiscordAPIError[50035]: Invalid Form Body
What exactly is Events.debug? 6 messages
rigid ginkgo I am just curious on what the .debug event does.
token not found 4 messages
spiral steppe when i try to register the commands it says token not found but i already put my token in .env
TypeError: channel.isText is not a function 7 messages
fallen dome Hello, when I click on a button i'm getting this error "TypeError: channel.isText is not a function" not from my code bu...
commands not working 13 messages
spiral steppe when i register the code it is fine but when i try -ping the bot dosent reply with pong
Format error preventing use of Music commands 8 messages
flint onyx I'm returning the error (below) when trying to run music commands: code: 50035, status: 400, method: 'PUT',
Not launching 25 messages
fluid rose Hey i was wondering why i cant activate my bot
Not Delete Message on slash command 8 messages
gilded berry Is it possible to make command usage with slash not delete the actual command message by the user?
client does not register new commands 23 messages
young solstice discord does not register new commands for some reason on my bot, im using 14.7.8 in this function i put everything that...
Same post after updating discordjs channel.isText 8 messages
grizzled delta Hello, I updated and uninstalled the node package as well as discordjs to reinstall everything and nothing changes, it b...
channel.isText not a function 3 messages
formal bolt Hi guys l have a problem in my bot. All the time the bot worked well, but an hour ago there was such an error in the con...
Typescript or Javascript 4 messages
unreal glade Hi guys, For those of you who use the Discord library, is it more comfortable to program with JS or TS? The truth is tha...
importing discord.js with ES module syntax 12 messages
sinful thunder I'm using scripts that use the newer ES6 modules and type:module in package.json. I've tried several ways to import dis...
DiscordAPIError[50001]: Missing Access 3 messages
spiral steppe so when i try to register / commands it says DiscordAPIError[50001]: Missing Access
threadUpdate 15 messages
night needle Code: ```js if (newThread.parentId === '1083539122083352589') { if (!oldThread.appliedTags.includes(...
how to remove tag from thread? 17 messages
night needle ^
cache 5 messages
crude junco discord v14.7.1 guest is the id of the user and a target user, trying to find if the target has the role taehyung rem...
Suddenly I got this error on every Interaction 15 messages
topaz kraken About 1 hour ago this error don't even appears, idk what's going on, I'm in `Discord.js v13.8.0` (Yes, I know that I hav...
**After Updating to 14.8** Getting an error 'Unable to Convert Colour to Number 4 messages
dapper iron ├── @discord-player/extractor@4.1.2 ├── @discordjs/voice@0.13.0 ├── @google-cloud/translate@7.0.5 ├── discord-player@6.1...
Getting following error 3 messages
vast cloud ```js if (channel && !channel.isTextBased()) return; ^ TypeError: channel.isTextBased i...
TypeError: channel.isTextBased is not a function 3 messages
uncut tundra When executing an interaction it gives an error inside discord.js saying that it is not a function **channel.isTextBased...
986538542350086175
New error magically appeared xD 51 messages
lucid parrot About to 40 minutes ago my bot crashed with a very uncommon error. Then tried to restart it and now it keeps crashing wi...
Differentiating between rate limit and sublimit on crossposts 13 messages
grizzled rune - What is currently happening: whenever a message is crossposted and the channel passed the 10 messages/hour limit, they...
channel.isText is not a function 3 messages
rare sapphire i need help
getting - token invalid 25 messages
tired cobalt Hey there. I'm installing my first bot and getting error. I took token from discord dev portal, in bot tab, of my my app...
help me please: 43 messages
uncut finch src is it
dm error handling 7 messages
formal snow ```js let errorMessage = 'Successfully submitted.'; if (desition) { applicant.send(autoApplyChannelData.acceptMessage)...
Bot key authentication 4 messages
fallen edge okay i have a bot, that checks if the user doing the !download command has a key, if not it creates one in keys.json, so...
module not found 7 messages
spiral steppe module not found everytime i do node scr/register-commands it says module not found
reading guilds error. 5 messages
terse cape hi, i faced this error when i want to run my bot: ```Cannot read properties of undefined (reading 'Guilds')``` and its t...