djs-questions

13317 threads · Page 32 of 267

Bot Appearing Offline on Some Shards 60 messages
lusty sky I’m running a bot on 635K servers, using `discord-hybrid-sharding` and `discord-cross-hosting` for efficient shard manag...
node
You cannot remove this app's Entry Point command in a bulk update operation. 109 messages
tardy prairie i need help idk what this means plz someone help me ur my only hope...
sharding with workers 15 messages
green radish ```const bot = new Client({ shards: "auto", intents: [ GatewayIntentBits.Guilds, GatewayIntentB...
node
userinfo bot 60 messages
faint hinge does anyone here know how to make a command for userinfo for bots on discord?
How to mention a guild 3 messages
crisp bone Is there a way to mention a guild like you would mention a user or a channel etc.? For example: <#222197033908436994>
node
I have an error that I cannot solve 14 messages
sullen merlin My code is: https://sourceb.in/nXRmM0SEUW And the error is: at Task._execution (D:\atermibot\index.js:35:36) at ...
anyone know why I get this error? 6 messages
winged breach DiscordAPIError[10062]: Unknown interaction at handleErrors (C:\Users\Adam\.vscode\Rythm\Rythm\node_modules\@discord...
node
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...
bun
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...
node
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...
node
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 ...
node
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...
node
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
node
How do I make a Message Context Action 17 messages
daring pendant Currently I have: ```js const logSearchContextMenu = new ContextMenuCommandBuilder() .setName('Get Time') .setT...
node
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...
node @discordjs package
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...
node
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....
node
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_...
node
how to add bot for car registration 3 messages
slim meteor bot for car registration
How can I get the author of a command? 3 messages
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...
node
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 ...
@discordjs package
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
node
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
node
Duplicate Command Execution Issue 7 messages
elder fern here you can see my code https://sourceb.in/FhBtZqDEo3
node
Some error that I do not understand 17 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 8 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 ...
node