djs-questions

9202 threads · Page 16 of 185

Uncaught exception: ConnectTimeoutError: Connect Timeout Error 19 messages
modest halo Keep getting this, hosting on my own server. It worked, then somehow it couldn't connect to a new shard since then could...
Unable to send an embed 22 messages
warped herald Hi, my code is practically the one that is included in the guide. I added a command which exports, during the execute ph...
client dereference error 4 messages
weak dawn After I've constructed the index code like this, I try to load it from a slashcommand file in the commands folder, but I...
1150878580193116250
Threads not auto archiving 36 messages
fierce violet This could be a discord issue but i am out of ideas on my side tbh. My bot creates a form channel with an auto archive d...
998292157150535700 1150878580193116250
Global commands not deploying 114 messages
tribal root ```javascript // and deploy your commands! (async () => { try { console.log(`Started refreshing ${commands.l...
Subscription's question 3 messages
visual locust I have a question about subscribing to a server. What happens to the subscription and entitlement if the user who subscr...
how to i listen for dm messages 9 messages
granite barn ```ts client.on(Events.MessageCreate, async (interaction) => { console.log(interaction) }); ``` this doesnt seem...
TypeError: setTimeout is not a function using error when using discord-rpc in electron 7 messages
untold furnace Hi! I'm trying to use https://github.com/discordjs/RPC#readme, but have gotten stuck at a specific part. When i run my s...
1003448629866020986
Slashcommand permissions 5 messages
topaz belfry Does discordjs have any functions to have permissions on slash commands, for examply if user doesn't have staff role he ...
Read Desc 5 messages
harsh oracle Is it possible to build emojis directly into the JS bot so that you don't have to upload them to the Discord server?
1150878580193116250
PermissionOverwrites Why did this stop working? 64 messages
halcyon umbra ```ts if (auditLogEntry.action !== AuditLogEvent.ChannelOverwriteDelete) return; const c...
Automod tag 5 messages
green prawn How do I get the Automod tag for my bot?
1113356221962010634
Series of component interactions 3 messages
normal forge I have a flow in which I need a user to start with a context menu command, then I display a select menu with a set of ca...
1150878498534199426
Update from v13 to 14 54 messages
grave siren So, I'm looking to update one of my bots from Djs v13 to v14, but the issue with doing so is within one of my packages t...
1150878580193116250
What's the best practice to handle errors? 16 messages
fossil magnet Is it possible to integrate a common error handler class?
Cant get the discord.js package 12 messages
plucky stone Hi, I sent the command in but it was saying (look at the picture).
998292157150535700
Get attachment from command after modal submit 4 messages
unkempt pumice **Hi there** <:waveBoye:985607731417329674> I'm currently working on a small `/bug report` command for a friend of mine....
Any way to check if the bot has sufficient perms to execute a command with SlashCommandBuilder()? 24 messages
fossil magnet setDefaultMemberPermissions() exists but it only checks the executing user's perms. I also want to add perm checks for m...
Discord.js Error with my dropdown menu and button 22 messages
half summit Hello, i want to ahev every choice = command So : If I choice a option, he send me the command error : ❌ Une erreur es...
Unknown interaction 2 messages
vapid furnace https://srcb.in/BSONkdUQ1S https://srcb.in/X3YTyb6NA0 It's giving unknown interaction error When I use buttons it work...
Unknown interaction 6 messages
orchid storm Error Logs: https://sourceb.in/QiMpAQzc9i Command Code: https://sourceb.in/j8vU677GKg its happening with every interact...
Question about Discord.JS's rate limit handling 14 messages
honest quarry I used ChatGPT just to have it summarize how Discord.JS handles rate limiting. My scenario was something along the line...
998292157150535700 1150878580193116250
Server Member Applications processing 4 messages
buoyant bramble Just noticed that my server had [this option](https://support.discord.com/hc/en-us/articles/29729107418519-Server-Member...
Buttons with Discord RPC do not appear 4 messages
modest drift ```js const DiscordRPC = require('discord-rpc'); const clientId = '#'; const TrackerRPC = new DiscordRPC.Client({ trans...
1150878580193116250 1003448629866020986
Custom type presence bot 8 messages
cyan cove Hey, i don't know how to set the emoji in the custom status of my bot, can someone help me ? ```js // Définition ...
998292157150535700
Embed - Remove timestamp 13 messages
terse lichen Hi, I started creating an embed creator Discord bot, but when I set the timestamp to 1 and create a new Date, I can't re...
Internal Server Error 5 messages
forest depot Is this on my side or the APIs ```js try { const response = await fetch(url, { method: "GE...
1150878580193116250
"Lock" feature 10 messages
fierce holly Hi. I need help with my own "Lock" feature. Here's how it work: - When user use /lock, get and save all of user's curren...
Issue with Node.js 8 messages
fading basin i cant seem to find an answer to this anywhere but my bot used to work with “require” (that’s also what it says to use i...
1150878580193116250
Issue with NASA APOD 22 messages
onyx warren Hey, I'm using discord.js v14 and I have a /nasa command that displays the nasa's astronomy picture of the day. But rece...
1150878580193116250 998292157150535700
A way to force a user to unfollow a post or remove the user without notification 9 messages
pure rover Is it possible to remove a user from a post exactly how it would the "unfollow post" do? Without getting a notification ...
Get modal question value 3 messages
topaz belfry Is it possible to get the question somehow from modal? You can get that textinnput value. Here is example what i mean
threadMembersUpdate doesn't being called sometimes 6 messages
ivory flicker ```ts client.on('threadMembersUpdate', async (oldMembers, newMembers, thread) => { console.log(thread.name, oldMembe...
Discord Rate Limit for Channel Creation 31 messages
candid hornet Hey guys! I'm working on a discord tool where some users would be able create a template (template i mean the channels s...
1150878580193116250
Seperate gateway process 4 messages
echo valve Is there a way to seperate the gateway/websocket process? I want to have a separate process for the websocket and bot, s...
1150878580193116250
How to DM users that authorized my app? 5 messages
warm scaffold I'm making a bot that's only usable in DMs with the bot itself and I don't know how to open these DMs with the user who ...
1150878580193116250
They help me 24 messages
silent bolt Hello, good afternoon. Can someone give me a bot to ban and unban users?
How do I make sure my Discord bot stays idle? 14 messages
daring meteor I have a discord bot that sets a status to idle when it's ready, but is there a way to ensure it stays idle, and doesn't...
Bot doesnt register new / Command 16 messages
crisp pike Okay, I have created a deploy-commands.js with after making it so I dont have to create command folders results in the f...
1150878580193116250
Issues with Entitlements 3 messages
winter forum Hey everyone! I'm having some issues with checking the entitlements of servers. It always displays, that the server does...
Unable to run code in production, code isnt running after build 4 messages
onyx beacon ```js ╭─[asus] as himanshu in ~/Projects/cfc-dc-bot-1 using node v23.7.0 on (discord.js)✘✘✘ ...
1150878580193116250
Which errors does discord.js handle and which does it let bubble up? 151 messages
cunning elbow To give one example, it looks like discord.js handles [`NotAuthenticated`](<https://github.com/discordjs/discord.js/blob...
1150878580193116250
How can i check if a message have an attachment? 9 messages
buoyant bramble And optionally, how can i check if the message is a text-file (and not something like pictures or videos)?
An advanced bot for Discord and I want to eventually mimic it for whats app 16 messages
red coral Its totally going to disrupt the real estate market, again assuming Im able to get it to do what Im after. Locating and ...
1150878890307358882 998292157150535700 1150878580193116250
Can someone answer my question about oauth2? 6 messages
gleaming sand I'm making a system to recover members, is it recommended to refresh the access_token from time to time or only when I'm...
1150878580193116250
idiot can't figure out how a (ts) bot project should look like 32 messages
glacial geode I have attempted to create a bot with the creator however the project structure it produces varies widely from what is i...
I cannot see my commands 7 messages
sullen merlin My index.js is: ``` const { Client, GatewayIntentBits, Collection } = require('discord.js'); const fs = require('fs'); c...
Its not possible to reuse / edit the same reply over and over again? 12 messages
daring sinew I reply to an initial Chatinput command with Ephemeral reply including an actionrow with interactive components. After ...
1150878580193116250 998292157150535700
HOW I CAN DISABLE CACHE? 6 messages
lethal current I want disable cache: All. Оnly the ones I use
1150878580193116250
Internal Server Error 5 messages
rugged goblet Hello everyone. I am developing an anti-nuke bot. When I try to block the nuke bot, I get an error ```HTTPError: Interna...
1150878580193116250