djs-questions

9202 threads · Page 31 of 185

help meeded 4 messages
subtle yacht error ```Node.js v20.15.1 node:events:497 throw er; // Unhandled 'error' event ^ DiscordAPIError[40060]: Int...
Assistance in setting up makeCache and sweepers 18 messages
glacial mountain Hello, I would like Assistance in setting up makeCache and sweepers. My problem: I have a certain amount of cpu/ram usag...
errer 5 messages
clever vigil What would someone tell me what the problem is please
Restarting bot token programatically 18 messages
remote estuary Is there any way that we can reset a bot's token? If there is no official method or underlying api endpoint I can use, w...
1150878498534199426
Shards Error ShardingReadyTimeout 2 messages
zealous dune Error while spawning shards: Error [ShardingReadyTimeout]: Shard 0's Client took too long to bec ome ready. at Timeout.o...
memory 10 messages
jaunty crescent my bot is across 10,000 guilds with 10 shards, each shard is approximal needs 550-750mb I am using the following intents...
How Can I Restart My Discord Bot Without Downtime? (130k Servers) 4 messages
hexed jetty My bot is currently in around 130,000 servers, and I'm using Discord.js with sharding to handle them. The problem I'm fa...
1150878580193116250
Message.channel type does not seem to have send and sendTyping in v14 15 messages
arctic pagoda My particular bot build is a typescipt build. The transpiler (and my edtior) indicate that the channel object in the Mes...
Node.js host process becomes "locked up" / "clogged" for simple bot 16 messages
rare grove I have developed a simple bot that: 1. Detects when a message could possibly contain media/embeds 2. Reacts with up/down...
1150878580193116250
Getting message context after modal submission best practice 4 messages
daring pendant I have a message context action that gives the user a modal. When the modal is submitted, what is the best practice for ...
1150878580193116250
Mee6 Import Script/Command 5 messages
karmic whale I have a custom bot that was originally written by another person who created this bot to allow others to have their own...
1150878580193116250
simple template to load slash cmds from 2 messages
frozen valley hey, im looking for a simple template to load slash cmds from i couldnt find anything online and asked copilot but they ...
How would I lock a command behind a specific role? 14 messages
digital viper I want to make a command that only a specific role can run.
Can i fetch every message from a channel? 4 messages
nocturne wolf Hello, i'm trying to make a bot that sends a random cat photo from the cat photos channel, but i don't know how i can ge...
Get the date of a user joining discord 3 messages
heady sand Is there a way to use the Discord API to get the date when a user joined discord (not a guild) or does discord not give ...
Shard Error 3 messages
robust burrow Not enough sessions remaining to spawn 1 shards only 0 remaining; resets at 2024-09-29T08:20:23.377Z
1150878580193116250
How do I make a Message Context Action 17 messages
daring pendant Currently I have: ```js const logSearchContextMenu = new ContextMenuCommandBuilder() .setName('Get Time') .setT...
1150878580193116250
Message Collector help 29 messages
smoky geyser Hey all, Im having some issues with message collectors in DM's.. i cant get the bot to actually collect anything at all...
1150878580193116250 998292157150535700
Permissions 44 messages
jaunty crescent is there a way to know what permissions my bot has in a specific channel? (ignoring the role permissions he has when we ...
I get an error saying ReferenceError: GatewaysIntentBits is not defined and I don't know how to fix 50 messages
karmic mica const { Client, GatewayIntentBits, Partials } = require('discord.js'); console.log("Running"); const client = new Clie...
1150878580193116250
Attachment won't send 31 messages
junior raptor Hello everyone, again, so this time i encountered an issue where when i take attachment as an option I cannot output it....
1150878580193116250
hi 1 messages
willow gust ewedfsdfsdfsdfsdf
998292157150535700
How do I run code 1 messages
karmic mica I haven't done discord.js in a while and I forgot how to run the code 😭 Any help would be appriciated
1150878580193116250 998292157150535700
guildAuditLogEntryCreate 12 messages
buoyant maple ```ts client.on("guildAuditLogEntryCreate", async (log, guild) => { if(log.action === AuditLogEvent.ChannelCreate) { ...
emoji 5 messages
tidal arrow heya, its possible to add emoji into a embed for example: ```{ name: ':credit_card: Payment Methods...
ClientUser.setActivity 14 messages
ornate solstice Hello everybody! I'm trying to implement in my project the feature that allows the user to show a presence on Discord j...
How do I prevent this if you press a button several times that it makes the error below? 4 messages
amber jetty ```Error retrieving command list: DiscordAPIError[10062]: Unknown interaction at handleErrors (/home/container/node_...
1150878580193116250
how to add bot for car registration 3 messages
slim meteor bot for car registration
Accessing Connections 1 messages
pulsar grotto Is it possible to get a users connections, for exmaple their steam connection to be able to verify their steam account o...
using discord oauth 10 messages
rough bough so atm i have a website, and a discord server with a bot. id like to allow a user to authenticate on the website with th...
1150878580193116250
My Discord activities just gives me a White Screen 7 messages
tender current I tried uninstalling and reinstalling the discord and a continue to get the same error. I'm getting this problem both in...
Guild User Profile URL 10 messages
limber plaza From what I understand you can’t ping a user they don’t have access to, so my thought is to add an embedded link that po...
Error during download 29 messages
white drift Hey, i want download discord.js, i use nodejs LTS 18.20.4, but i have big error say by npm ```cmd npm error code 1 npm ...
998292157150535700
How do I grab the voice channel the bot is currently connected to? 15 messages
steel fox Heres is the breakdown: CONTEXT: I am trying to make a simple if statement, that compares the guild ID of the voice cha...
Bulk role add/remove 11 messages
ember sapphire Hi everyone, I want to implement a discord bot command that can be used to add/remove specific role to/from a large grou...
hello i have a eror and im new 2 messages
flat ferry im new asf
1150878580193116250
Hi! I have an error. 14 messages
sullen merlin This is the error: ``` node:events:498 throw er; // Unhandled 'error' event ^ ReferenceError: ChannelType ...
DiscordAPIError[40060]: Interaction has already been acknowledged. 5 messages
odd hearth I've been trying to solve this problem for quite some time. I am making a ticket system and it is very annoying that thi...
guildCreate not firing 15 messages
night needle const wlSchema = require('../../Schemas/serverwlSchema.js'); module.exports = { name: "guildCreate", async exe...
Recreating welcome message wave button? 3 messages
proper monolith Any way to re-create the "Wave to say hi!" button that the server sends when a new member joins the server? One that wou...
help im newbie 3 messages
raw lichen Help me how can do it here
1150878580193116250
Duplicate Command Execution Issue 7 messages
elder fern here you can see my code https://sourceb.in/FhBtZqDEo3
1150878580193116250
Some error that I do not understand 16 messages
sullen merlin I have a code and it has a few problems. Even if it is not the console saying it, but you see something bad in it, tell ...
Validation Error in Mongoose/djs 7 messages
abstract light Hello! I am trying to write a command called `/moderator` with a sub-command `/moderator add` which adds a user's ID to ...
Don't understand where to write this code. 6 messages
rotund token Please explain where need to write this code. I have re-read the documentation on this code more than a dozen times and ...
1150878580193116250
No idea how to solve this. 10 messages
sullen merlin So I have a bot. This bot does a few other features that works, but the one that I have a problem with is where the !sta...
apps added to servers 22 messages
tired sapphire how can i get the guilds that have added my app? i’m specifically asking this since guilds.cache doesnt contain that inf...
1150878580193116250
Question.. 5 messages
worn lodge How can I change the bot's bio?
Shard info 6 messages
solid arrow Hi I want to make a command that shows how many servers each shard has and ping etc. But something is not working. Here ...
1150878580193116250
embed don't display in the bot message 32 messages
foggy canyon Hi everybody, discord.js@14.16.2 node v22.7.0 ```js const { EmbedBuilder, SlashCommandBuilder } = require('discord.js'...