djs-questions

13317 threads · Page 143 of 267

Fetching option questions. 6 messages
inner sorrel I work on a discord bot for a large community through several discord server/guild. And i need to fetch an certain amoun...
The bot does not respond to the message 18 messages
jovial flower I wanted to start exploring discord.js but after writing the first code I encountered a problem with the bot not respond...
redis cache 2 messages
tawdry laurel Is there any way to cache all things like members and guilds in redis?
How to fix creating a new event listener every time someone executed the command `sendimage.js` 5 messages
visual dune Hello everyone! Code didn't fit in this post but you can see the code and problem in full detail on stackoverflow: https...
Trouble with buttons as per discordjs.guide example 16 messages
royal willow I'm following the guide on discordjs.guide regarding adding buttons and having those buttons then perform the action for...
Forum channel permissions 2 messages
past obsidian I want to edit this permissions for a role applied inside a Forum channel, I can't seem to find which roles are these, I...
Deleting all posts inside a Forum channel 4 messages
Event Listener paramters 7 messages
eternal bough how do I figure out what params to add to my execute: function in my event listeners?
Update button component without updating the whole message? 24 messages
pine pewter I'm playing around with message components and want to use some buttons as booleans for some configurations (red = disab...
Ratelimit question. 5 messages
halcyon meteor Does discord js check the rate limit? For example, if I want to do this code: ```js while(true) { interaction.edit...
My bot stops playing music 2 messages
discord voice message ? 4 messages
rigid stream Does discord voice message will be available to discord bot ? Or you didn't have any news on it ?
Slash command failing 4 messages
edgy crane 'const { Client, GatewayIntentBits, Partials } = require('discord.js'); const client = new Client({ intents: [GatewayInt...
Welcome message isn't working. 16 messages
marble monolith I am trying to get my bot to post a welcome message in a channel as soon as a user joins the server. However I am not su...
Convert from CJS to ESJS 39 messages
cinder wraith Hi I'm following the guide in discordjs.guide and at this page https://discordjs.guide/creating-your-bot/slash-commands...
Sharding problem!!! 34 messages
ionic oyster When my bot is running on my local machine it works without any error but as soon as I try to deploy it on a vps eg. Dig...
Is there a way to calculate the total character count of all fields of a message before it is sent 4 messages
crystal crag I want to be able to calculate the character count of a message (Most helpful if it was caluculatable for individual emb...
How can I create a select menu within my command file? 5 messages
Question regarding handling Partials (messageDeleteBulk) 6 messages
little temple Hello, I have this working so I don't need help in that sense but I was wondering if there was a better way to handle go...
channel.permissionsFor on command returning null value 5 messages
versed karma I have a command that does a check of permissions the bot has before it starts processing and I'm having trouble with it...
My bot keeps reconnecting to discord 6 messages
gloomy whale Can I please get some help with this, I've been having this problem with my bot for some time now, almost 3 messages fro...
Max Memory Restarting on Traditionally Sharded Bot 19 messages
drowsy crest What do people here use for facilitating automatic max memory restarts with a traditionally sharded bot?
.setDisabled(true) is not a function 9 messages
vagrant ridge Hi, I'm bumping into an error every time I try to change the buttons (components) in my message to be disabled. `consol...
Possible to create thread or topic with final user not discord bot? 2 messages
coral plume Hello, I'm creating a forum that uses discord to store data, I managed to log into the discord server and got the id and...
error interaction menu 6 messages
mortal pendant Hello, I noticed an issue with the drop-down menus. After a certain period of time (a few hours), I try to interact with...
interaction.options.getString() is not working 6 messages
primal walrus As mentioned in the title, when I use interaction.options.getString() I get null. Below is my code in index.js: ```js cl...
bot going offline with no error 12 messages
ancient wedge Hey, I’ve been hosting a discord bot on a vps for almost 6 months. The discord part as always Alright. Now I’ve decided ...
Why can't use async execute(interaction, client) 2 messages
junior widget ```const { SlashCommandBuilder, EmbedBuilder, PermissionFlagsBits } = require('discord.js'); module.exports = { userPerm...
Cant upload commands 5 messages
rough oak This is the error that pops up ```Error: getaddrinfo ENOTFOUND discord.com at GetAddrInfoReqWrap.onlookup [as oncomp...
Slash command and Unknown interaction 4 messages
elfin rock Hi team 🙂 I have a slash command with an action row of buttons, the command is like a personality test, it sends an emb...
TypeError: Cannot read properties of undefined (reading 'status') 16 messages
dawn zephyr Why this code stopped working? ```js const guild = client.guilds.cache.get("944616601678917632"); const onlineCount ...
Problem with the loading of 3 commands 16 messages
noble sail hello ! I've a problem with 3 of my commands, that load properly but they are not shown in the discord integrations of t...
How to edit a message with file attachments? 8 messages
gentle timber Hello, I am encountering issues with my file server bot. It has a message with an 8mb file attachment and a button under...
help, event handler 43 messages
dapper swan pls
Custom ModMail bot not responding 132 messages
edgy crane Im a new developer and trying to learn some things but having a lot of trouble. I made a mod mail bot today to send the ...
Is there a way to get an author of different interaction? 8 messages
vagrant ridge I'm discovering discord.js library and specifically bot development to myself and I've been stuck with an idea I have no...
Errors 16 messages
harsh oracle Hey, i'm getting a errors but i dont know why and i dont know how to fix it plz help me my code: https://sourceb.in/GS...
guild.members.cache.get not working 23 messages
simple sierra I'm trying to get a user knowing only the discord ID
Documentation 9 messages
wide fossil What happened to the documentation? No events, no more than half of the classes
Information regarding making a music bots 14 messages
marsh palm How do I begin making a bit that plays music nowadays? I've been out of the loop for a while and I've made a bot the las...
guild.preferredLocale 6 messages
vital scarab I have a problem. The server owner (I) uses the russian language, but for some reason I get "en-US" ```js co...
Ready event randomly stopped working 15 messages
mellow frigate Does Discord have issues? Until a few hours ago my bot worked completely fine and have been for several months, but now ...
Client Question 3 messages
gusty thistle Why does the following sometimes work when the client / code starts / runs and other times doesn't? `client.application....
im making a command handler for my bot and i get this error 13 messages
Need help with an error idk what it is 10 messages
turbid meadow i get a weird error and idk what it is
How can i logout my client 3 messages
timid briar is there any way to stop your bot without stopping your program? i've tried client.destroy() but it throws an error "Exp...
Anyone familiar with creating listeners? 13 messages
stiff rivet Hello All. So I previously had a standalone discord success bot that did all the listening and controlled all the succes...
i did my embed bot and everything but when i try using it this pops up 41 messages
quartz axle i did my embed bot and everything but when i try using it this pops up
Function unsure if I am handling this correctly 3 messages
fathom wraith Checking presence activities for Invictus isStreamingBadHabitsRP: false Checking presence activities for Invictus isStre...
commands are disappearing after 2-3 days after reinviting 24 messages
grizzled tinsel greetings 👋 I have the problem in my discord-bot that the commands are disappearing after 2-3 days, the server-owner ...