djs-questions

9202 threads · Page 155 of 185

Debug Events for ratelimit 20 messages
tired gust So does anyone know how to create debug events but it will log ratelimit information
http only bot 10 messages
deep ledge Can we create a HTTP only bot with Djs and deploy it to cloudflare workers? Because i have a discord bot in discord.py w...
how do I use permissionOverwrites.edit() 15 messages
naive notch im trying to add permissions to a voice channel but I get an error when trying to use it like intended in the doc <http...
Sharding 2 messages
tulip breach I don’t know how to create a shard/ setup or install it.
I am attempting to allow a user to update the topic of a channel to include a unix timestamp 4 messages
trail palm The code that seems to always produce a timestamp that is 10 hours early ```js } else if (command === 'updateraidtime')...
menu's 8 messages
deft heron I'm so confused, I have it so that if I send a command and the bot replies with a menu, and an user selects option 1 for...
Automatic Restart On Crash. 49 messages
terse spoke i have a discord music bot. I host my bot on DigitalOcean and just so then u know, music bots are take lot of resources....
Discord RPC api routes throws 404 30 messages
opal rock Hi, i have a problem with discord rpc. When i try to authorize doing post in `https://discord.com/api/oauth2/token/rpc` ...
1003448629866020986
Help Stop the LOOP 2 messages
tardy patio I need help figuring out how to stop this loop, any links or completed code will help greatly 🙂 ```js module.exports =...
How to create an embed with pagination? 25 messages
tacit osprey I didnt found any tutorial for v14, if someone wants to share one it would be amazing!
Performance 2 messages
zenith coral does a command handler make your discord.js v14.7.1 bot run faster (have better performance)?
Community Features??? 3 messages
lethal crow Hi, I was wondering if Discord.JS gained new features that could create/modify/delete subthreads and forums? Need this f...
998292157150535700 986538542350086175
How do I check if a messages user has a specific role? 9 messages
fathom cliff ```js let channel = client.channels.cache.get(DISCORD_COLLABS_CHANNEL); let messages = await channel.mes...
Cannot read properties of undefined (reading 'reply') 3 messages
turbid hull I want to create a `latency` (ping) command, but I got an error message like this : `Cannot read properties of undefined...
can not play audio 7 messages
solemn bridge my bot can not play audio even though i can see the signal talking when my bot joining voice channel, here the code : `...
how can i access client property on sharding? 16 messages
low rivet I have all music player data on client that I can access through `client.manager.get("guildId") but how can I access thi...
998292157150535700
"Interaction Failed" message when using bot's /ban command 35 messages
cinder flicker Discord js v14 and node v18.12.1 When I try to ban a user with my bot, it runs the command successfully but once I pres...
bot randomly logging out 3 messages
still trail I've noticed 3 times the past 2-3 months that the discord bot has logged out. I can't find anything in the logs, nothing...
Reason for timeout 11 messages
quasi latch Hi, just a quick question: how can I receive the reason for a timeout?
TypeError: Cannot read properties of undefined (reading 'send') 2 messages
nova sorrel I'm trying to write a basic Discord bot that sends messages at a specific time of day but I can't even get it to send a ...
Internal error while fetching text channel 6 messages
waxen jay Recently updated to discordjs v14.7.1, and ran into the following issue: Node v18.8.0
API Fetch error v13.1.0 2 messages
prime jolt I want to fetch an API, the fetch works during one month but today he didn't work with an error. The code aren't modifi...
"async" keeps popping up as false? 11 messages
shadow heron I'll show a pic of my code below...
Loading slash choices from file 12 messages
oblique shell Hello, I want to create a bot that can load a big number of slash command choices from a JSON or CSV file, add them into...
"Test my Commands" 3 messages
spring echo Is there a discord.js native to use this feature, or better asked is this features usable for everyone? Please lmk
problems with audio stream 2 messages
solemn bridge i try to create my own music bot use the ytdl-core library to dowload audio stream from youtube and then using createAud...
ephermal in message component? 48 messages
gray quiver I want to use ephermal in message but its not working
Bot treating register-commands.js file like its not there. 23 messages
wispy mountain This is my index.js ``` require("dotenv").config(); const { Client, IntentsBitField } = require("discord.js"); const c...
FileNotFound error 2 messages
bright island I'm getting a FileNotFound error from discord.js, doesn't show where in my code it's calling whatever is erroring so I h...
How to create webhook using SlashCommandBuilder() 15 messages
eager patio hi, i want to know how i use/create webhook by using slash command or if it is possible. i already have a command with i...
986538542350086175
How to get a full channel from an interaction option 6 messages
brisk nacelle I'm trying to get a channel from a ChatInputCommandInteraction, but the typescript type is only partial for some reason,...
Null Properties of an Invite 2 messages
grim kraken I'm attempting to read some properties of an invite, but they return `null` when the invite is deleted. I'm logging the ...
Mongodb not showing warnings correctly 4 messages
hasty mica So I created a warnings command to show all user warnings with mongodb. Although I clearly have warnings the bot is tell...
make button disabled for one user only 9 messages
granite aspen I want it so when a user clicks on a button in a message, the button they click on is disabled / not clickable anymore f...
Is there a way to show modal on a ModalSubmitInteraction 5 messages
dawn thistle I know that there is no function "showModal" on this type of interaction but I would like to know if there is a trick th...
data.limitSpotify -= 1 substracts 2 instead of 1 (MongoDB) 2 messages
dawn zephyr Hey, When I want to limit the user so he can only use a command 10 times, the bot substracts 2 of the user's limits, ins...
Sending a text attachment 5 messages
digital nova How can I upload and send a text attachment in discordjs?
"Cannot find module './_chatInput/attachment'" 7 messages
exotic jewel i'm attempting to run my bot on `Ubuntu` but this appears, how can i fix this??
roles.add acts like roles.set 24 messages
steady talon Hiya, I'm currently using Sapphire as a framework, but for the listeners `guildMemberAdd`, it checks a database for the...
Creating a Embed Slash Command 10 messages
zenith cove I'm trying to create an interactive slash command to send a embed. The idea was to have the command which would have ei...
How to defer an interaction.update? 10 messages
fallen dome Hi, i've a command respond with a simple interaction.reply and then using the attached select menu there is a further in...
How I set a character limit on a string option 6 messages
safe haven Pls I need help I want to limit to 30 character the option User
Cannot read properties of undefined (reading '_add') 38 messages
muted beacon I am currently encountering the error (see screenshots), I have found references to something similar in the following g...
change message author's name & icon 15 messages
patent root i want to change the display name and icon of my bot in specific messages, but i'm having trouble changing it i tried u...
Is there a way to get the interaction where a modal was created? 6 messages
gusty bramble How would I go about getting the interaction from where the modal was created? I need the interaction where I sent the m...
client missing intents 8 messages
finite pier a little help pls: ``` throw new DiscordjsTypeError(ErrorCodes.ClientMissingIntents); ^ TypeError [ClientMi...
Trying to make music bot and having errors with the queue 14 messages
dim acorn The bot will play songs but yesterday it just stopped working and im not sure why, it is supposed to say when the song s...
checking voice channel 13 messages
solemn bridge i can not check if the user is in voice channel or not , Here is my code : client.on("messageCreate", async (msg) => { ...
message.content doesn't contain anything when MessageCreate fires 4 messages
ocean sky In the last week I returned to Discord.js. I made a simple code that sends back your message. The problem is that when i...
RoleSelectMenuBuilder 10 messages
digital nova How do I set the roles available in a RoleSelectMenuBuilder? There's no .setOptions method it seems