djs-questions

9202 threads · Page 74 of 185

Cache/sweeper settings for memory constraints, mostly messages 10 messages
pale nymph We are in a very memory constrained environment. Our individual bot processes can't exceed 512 MB. Right now each proces...
1150878580193116250
changing stuff around when a button is clicked 52 messages
wet barn how would i make it so when a button is clicked on an embed, it does the following things; change the embed into somethi...
1150878580193116250
Discord.js version 3 messages
fossil nimbus I was just wondering if there will be a Discord.js v15?
1150878580193116250
Disable buttons if none were clicked when timer runs out 6 messages
civic citrus This is a follow up question to one of my previous posts where I wanted to dynamically disable buttons based on their cu...
SyntaxError: Unexpected identifier 'Ready' 34 messages
little kestrel this is literally my first time coding and i keep getting the same error. what do i do? im literally trying to code a di...
1150878580193116250
an error on delete command 5 messages
candid latch how i fix this error?
Please help, can't figure out what my problem is. 6 messages
slender root I recieve this error message twice: ```DiscordAPIError[10062]: Unknown interaction at handleErrors (/home/minecraft/...
DJS RPC Alternatives 8 messages
chilly geyser I’ve read the many posts about the library no longer being maintained. I want to know what others I can use, that are u...
1003448629866020986 1150878580193116250
Message reaction event 7 messages
plain wren Hey, I'm trying to listen for reactions on a message Id but there's no output when I react to the message, could someone...
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed 3 messages
patent gorge how can solve this? when i use this intents: IntentsBitField.Flags.Guilds, I...
How can i fetch user presence 2 messages
hardy zinc How can i fetch user presence like a user using spotify he will get spotify role and a user using vsc he will get vsc ro...
1003448629866020986
Trouble with collecting message component interactions 3 messages
glacial fern After upgrading from an earlier discord.js version to the newest, slash commands that replied with a message with messag...
Not seeing routes on docs 7 messages
wise thunder Hi, The docs and guide use this piece of code for registering slash commands: ```await rest.put(Routes.applicationComma...
Edit embed in DM 5 messages
analog hazel Hi, I've already written on the djs-help-v14 channel and received a hint on how I can edit the embed using interaction.u...
Error at beginning 12 messages
twilit oak Could I know the reason why it won’t work? Because I didn’t start my bot for 3 months ago and I started it today so ple...
Started new bot 1 messages
twilit oak Hello there, I started My bot Once i Started i Got confused By the error i Got and i wanna know The reason Please second...
1150878580193116250
Question with creating a sticker 2 messages
hushed fossil Why when creating a sticker using a image url as the attachment property it works. But this errors? My code is ```js con...
i keep getting a invalid token even though its valid 3 messages
void hornet Error: Cannot find module '/Users/codyword/Downloads/anarchy-main/help' at Module._resolveFilename (node:internal/mo...
998292157150535700
Keep getting error with intents. 4 messages
obsidian torrent So I just started using v14.4.1 i put the new intent code as showed here `const client = new Client({ intents: [ ...
welcome not working 38 messages
solemn bay So I have this welcome script and its just not working I use @napi-rs/canvas Here is the code https://pastebin.com/...
Super high latency to Discord API 5 messages
quaint loom My server is in dusseldorf, germany. My bot is experienced with an average ping of about 2000 to 3000 milliseconds. Any...
Canva Image to .setImage() 8 messages
supple pumice How can I add a @napi-rs/canvas image to a embed as image in a .setImage function?
998292157150535700
Creating multiple selects command 10 messages
thorny warren Hi, i'm currently trying to create a command which utilizes select function, i want to collect 2-3 values one after anot...
Cannot Read Properties of undefined 11 messages
languid spear I'm using a starting guide for discord.js (discordjs.guide) this is the code it gave me ```const { Client, Events, Ga...
1150878580193116250
use setEmoji to set no emoji/ remove an emoji from a button 11 messages
frosty mulch I normally use setEmoji({name: undefined}) when I want to not have an emoji on a button, generally for dynamic button cr...
AutoModerationRuleUpdate -> OldRule is null on rule actions update 3 messages
gusty thistle the old rule is null when I update the rule's actions (timeout, alert message). Is this normal behaviour? Yes, i am awar...
Importing embed and message variables from another file. 22 messages
deep jasper Hi, i am trying to make a button that never expire, so im using the method of doing and even handler inside client.on in...
Hey, i need help with a command 8 messages
vital pollen I am making a verify command and I would like to know how to implement that the role is given at the moment of hitting t...
command deploys faster than i can fetch info from db 7 messages
plush lichen My goofy ahh code: ```js const { SlashCommandBuilder, EmbedBuilder, AttachmentBuilder } = require('discord.js'); const {...
1150878580193116250
Using InteractionCreate want to add multiple emoji/unicode images to text v14.14.x 4 messages
brave gyro My bot is taking in a value and returns back multiple lines of text. For each line if text I'd like to include an image...
1150878580193116250
How do i get user's guilds with @discordjs/rest 8 messages
hazy widget I got the access token and i want to fetch user's guilds
998292157150535700
Bot is ready but not responding 10 messages
fluid geyser I don't know why this happened , the bot was working perfectly and I didn't edit anything. just stopped working after ru...
1150878580193116250
Make bot send message from a specific user in a specific channel 5 messages
fallen hull I'm trying to make a bot send a message to a specific channel, the message sent would be something I say in another chan...
Disable a button using its custom_id 57 messages
civic citrus Can I disable a button (that has not been assigned to a variable) by using it's custom_id? I am creating buttons dynamic...
error in code 16 messages
vague peak these my package .json when i run npm test or start it show error but when i run using node index.js it work fine please...
Is this possible through Discord js? 23 messages
distant cape The event is listed as thread_creation_started but I cannot find any documentation on this. I want to be able to create ...
discord.js collections 3 messages
alpine vapor hello i have two discord collections one for my slash commands and one for my user commands (context menu commands) but ...
1150878580193116250
Oauth rest 27 messages
normal estuary ```js export async function getUserGuilds(token) { const rest = new REST({ version: "10", authPrefix: "Bearer" }).se...
998292157150535700
Removing messages from cache after a certain time 9 messages
torpid holly ```js messages: { interval: 3600, filter: Sweepers.filterByLifetime({ lifetime: ...
What's this 3 messages
lilac gyro ?
1150878580193116250
context menu loading 3 messages
alpine vapor i have a custom command file setup like this https://sourceb.in/EeStdEJZDN but want to be able to set user commands
1150878580193116250
Guild .memberCount vs .approximateMemberCount? 18 messages
lofty steeple What is the difference between a guild's memberCount and approx MC? I don't see a memberCount in the actual API-provided...
1150878580193116250
How to use a custom font in canvas 3 messages
safe stump code: ```javascript registerFont('Montserrat-Black.ttf', { family: 'Montserrat Black' }); //... ctx.fillStyle = 'white';...
1150878580193116250
targetchannel.send is not a function 12 messages
split coyote ```js await client.guilds.cache.map(guild => { guild.channels.cache.forEach(async channel => { try { ...
1150878580193116250
how to cluster on more then one computer 11 messages
alpine vapor im wondering if / how you could have two vps running a discord bot to split up the interactions / commands to make your ...
1150878580193116250 998292157150535700
can we pass the slash command using code to channel ? 7 messages
reef viper I want to send a slash command to channel through the code on particular createMessage in channel, is that possible usin...
998292157150535700
Voice channel status update? 4 messages
outer lantern Is there anyway to update channel status using djs?
Spurious messageUpdate 13 messages
digital nova I just observed a messageUpdate event emitted on a message from 2018 that doesn't show as edited. What can cause this ot...
Unhandled promise rejection: Error: getaddrinfo EAI_AGAIN gateway.discord.gg 1 messages
earnest lodge Hi! My bot have been woking as it should for abt a week, but yesterday night, my bot keeps turning off by itself. It is...
1150878580193116250
How do I send a message after an interaction.update without this problem? 2 messages
elfin bronze How do I send a message after an interaction.update without this problem?