djs-questions

9202 threads · Page 165 of 185

Error when deploying/registering commands 4 messages
dawn bloom ``` const { REST, Routes } = require('discord.js'); const { clientId, guildId, token } = require('./config.json'); const...
Timeout Listener 16 messages
tulip elbow Hello, I try make timeout listener: ```js // core bot.on('guildMemberUpdate', (member,newmember) => require('./events/ti...
Possible to spawn for a single server with sharding? 9 messages
primal horizon I'm looking to have my bot do some specific processes in my server alone using a cron job (assigning roles based on data...
shardError 5 messages
coral drum Shard Error: WebSocket was closed before the connection was established Is djs automaticaly reconnecting when shard err...
Using raw APIInteraction data with DJS 16 messages
fathom hawk I am no doubt going to sound like a moron with this question and perhaps it's not even something relevant to this Discor...
Sending DMs to a user who the bot does not have a common guild with 4 messages
granite aspen Here's a situation. A user is banned by the bot and then the user has to be messaged by the bot they are banned. Can the...
How to reply to timed out modal? 5 messages
serene walrus After doing `await interaction.showModal(theModal)` `interaction.isRepliable()` is `true` `interaction.replied` is `tru...
Channels are becoming de-cached? 34 messages
tribal perch I have a project, that scans voice channels - and converts everything into a tidy embed (see image), however after ~12 h...
Strange behaviour in model initialisation 5 messages
fringe mountain Hello guys! I have a pretty strange behaviour in my code that I can't seem to understand. I am developing with Discord....
Regarding Verification Process. 1 messages
neat compass I had a question regarding the login process for the bots. Am I able to create a method for the login process to be stan...
Can't find module (TS) 4 messages
ionic iron Help me, am new in TS. I wanna learn
Bot randomly goes offline, script keeps running 12 messages
leaden tulip Since I updated from v13 to v14 my bot goes offline randomly after a few hours/days. Both on my cubes.host and my local ...
<function> is not a function 13 messages
dawn zephyr Hey, I have a function out of anything, at top of my code named ticket. It works anywhere else but does not work in a sp...
How to have a bot get a random image off of a subreddit. 6 messages
crisp valley I am trying to get a discord bot to get a random image off of r/cats with a slash command but I am unable to. Does anyon...
No exproted member PermissionFlagsBits 2 messages
lusty seal How to fix no exported member PermissionFlagsBits
Webhooks 2 messages
echo valve Do rate limits get abided when using the Discord.js library?
slashcommand make timeout with ram using higher 9 messages
robust geyser on my log console getting under ```ansi {"timeout":59719,"limit":2,"method":"put","path":"/applications/**...
How to use createInvite Method to create a unique invite for 1 person 9 messages
fair vigil I am trying to make a unique invite for one person only, here is my code ```js const guild_ = client.guilds.cache....
client.channels.cache.get or client.channels.fetch doesn't have send function 31 messages
tidal lake Available Channel Things: Attachment Code: ```ts import client from "../.."; import { Event } from "../../structures/li...
How can I add a button to an existing message? 4 messages
fading turret I’m learning d.js and I’m wondering what the eval command is to add a button to a existing message from the bot.
is it recommended that all embeds are placed in the index.js file? 2 messages
dusk violet and then i can just import them or whatever?
Bot issues 3 messages
toxic compass i am getting an arror and i dont see whats wrong please help 🙂
RPC Discontinued? 8 messages
inland verge The docs aren't on the website anymore, and the repo hasn't received updates in a few years now. Did something happen?
1003448629866020986
Creating Channel Error 25 messages
queen crescent Anyone able to help me with this by chance? On line `31` the bot will fail to perform: `await interaction.guild.channels...
Trying to send buttons with embed 3 messages
heady pilot DiscordAPIError[50035]: Invalid Form Body components[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (1,). ...
I can't assign roles using a bot 17 messages
orchid inlet Hi I've been trying to assign a role using guide's code, but it seems it's not working code: ```js client.on('interact...
DiscordAPIError[50035]: Invalid Form Body 4 messages
drowsy crescent Im trying to register a slash command and I get the error in the title.
Console Log DM's sent to a bot. 40 messages
leaden thunder Using; discord.js@14.7.1 and node v18.13.0. Intent's and Partials are set correctly. What I'm trying to do is console ...
Not finding a file 3 messages
silver sky Hi sorry for this but, I have been trying to fix this problem but can't really find it, so i have this code i tested on ...
Issue: The reply to this interaction has already been sent or deferred. 12 messages
minor wave Hi I have a pretty simple /command that says something in another channel. But I keep getting this error: Here is the c...
Bot slow on the same code 14 messages
misty steppe When i put the same code into the Development bot, it runs fast and good but when i change it to the main bot, it's slow...
Code issues 13 messages
toxic compass So I have just started today and gotten everything I've needed and started coding but one line won't work and I can't fi...
What are possible causes for "DiscordAPIError[10062]: Unknown interaction" 3 messages
exotic wharf Hello 👋 A user of my bot reported that they are getting the following error: ``` DiscordAPIError[10062]: Unknown inte...
TypeError: Cannot read properties of undefined (reading 'process') 35 messages
drowsy crescent When i launch my file it gives me this error and I dont know why.
Autocomplete select menus+ 9 messages
hardy jungle Is there any way to do autocomplete with a SelectMenu or other type of non-slash interaction? I'm trying to do a role s...
mass Kicking users 36 messages
mortal cloak Hey there, I am an admin on a large server that has unfortunately died, the server has around 1000 members but only arou...
case erroring? 5 messages
short aspen how do u stop the case from erroring ?
User Connections (Discord.js v14.7.1) 4 messages
still thunder Is there anyway to retrieve a user's connections?
bot suddenly offline 57 messages
slow ferry `client.isReady()` ``` Returns whether the client has logged in, indicative of being able to access properties such as u...
ChannelSelectMenuBuilder with type AnnouncementThread issue 6 messages
magic basalt It does not detect threads created in announcement channels, even if the member using the select menu builder is visible...
Problem creating new embed object from received embed object. 8 messages
hollow night I am having trouble trying to create a new, editable embed object from an embed received from a button interaction, but ...
I have a problem add bot my servers 5 messages
silent kettle hi, i create my bot and activate the below features > PUBLIC BOT > REQUIRES OAUTH2 CODE GRANT > PRESENCE INTENT > SERVE...
Issue with ClientApplication always being null 6 messages
soft quartz Hello, I'm trying to register application commands by doing `client.application?.commands.create()`. The problem is that...
Timestamps are not using viewers local time 5 messages
pseudo bone I am using `.setTimestamp()` however as it use to display the user viewing the embeds local timestamp it is now showing ...
Get server name from server ID 4 messages
sly furnace How do I get the server name from the server ID? I want to get the server name of the server ID entered with the slash c...
guildMemberAdd doesnt get triggered 22 messages
red latch Code: ```js client.on('guildMemberAdd', async member => { console.log("Member joined"); .... try { ....
Add invisible data to embed/interaction 14 messages
quiet oar Is their anyway I can add some data to an interaction/embed to then when writing the function for a button get the data ...
Can i make a bot with DiscordJS that does kinda like webscraping?(its uses push notifications) 3 messages
lucid dagger My company has a service, and i wanted to make us push notifications faster than atm, so wanna make a bot that can send ...
message reaction 4 messages
sinful thunder how do I only trigger a message reaction once, i.e. more than one user reacts to a message but only want it to action on...
How do I perform task upon reply-message. 3 messages
sage schooner I am aware that the statement `if (message.author.id === "id")` allows me to listen to someone else's messages, but it ...