djs-questions

13317 threads · Page 59 of 267

buttons not working 48 messages
how to handle "unknown interaction" error 9 messages
glossy dove ```ts try { return await interaction.reply(...); } catch (error) { if ((error as...
bot not running 10 messages
main nymph fix plz
node
User App Added Event? 3 messages
restive thistle Similar to client.on guildCreate, is there a way to get an event when someone adds the app to their user?
Discord bot keeps going offline for no reason 24 messages
candid zephyr There are no errors in the logs, I'm using PM2 so I don't think its anything related to the bot not receiving requests, ...
contextmenubuilder 26 messages
junior widget ```const { ContextMenuCommandBuilder,ApplicationCommandType, PermissionFlagsBits } = require('discord.js'); module.expor...
Upload file 3 messages
old ferry hi, it is possible to make this with discord.js plz ? ```js module.exports = { data: new SlashCommandBuilder() ...
node
Find bot in server 4 messages
desert mango I need to find all bots in the server even if it does offline ```js const bots = message.guild.members.cache.filter(m...
node
RoleSelectMenuBuilder interaction failed 13 messages
zinc hull Hey i am get interaction failed and no interaction i am getting ```js // Ask for moderation role ...
node
owner.send isn't working properly 24 messages
acoustic hedge Hey, for some reason when I my bot runs this if statement: ```js if (await isToggled(guildId2) === ...
node
I cannout untimeout a user 18 messages
mortal badger ``` const { MongoClient, ObjectId } = require('mongodb'); const findCase = require('./findcase.js') // Connection URI c...
Adding permissions to bot that is already used in many servers 6 messages
atomic nacelle Hello everyone, hope you doing great, in short words, I want to start using webhooks with my bot but I never added that...
How to make an attachment from an http response 10 messages
turbid viper I'm making an http request with `await fetch(imageUrl)` and would like to turn that into an Attachment for use in an emb...
How to check if randomServerWithAd blacklisted the server that is running this command. 4 messages
acoustic hedge ```js module.exports = { data: new SlashCommandBuilder() .setName("partner") .setDescription("Partne...
node
User need to be authorized bug 15 messages
acoustic hedge Hey, so everytime my partner managers try to run /partner or /partner-category they can't run because of this if stateme...
node
storing 2 objects into one 2 messages
errant eagle hello, i wanted to know how i could make my data be stored in one object in mongodb, since im using 2 different collecto...
node
hey i have problem in my bot with welcome 5 messages
spark swan Unhandled promise rejection: Error: Server responded with 404 at C:\Users\sami\Downloads\Flux-Bot\Flux-Bot\node_modu...
node
<Interaction>.channel.edit stops working after 2 edits 15 messages
nocturne wolf I'm making a ticket system in my bot, and i noticed a problem. Where when i edit the channel 2 times (closing the ticket...
Using setActivity or setPresense does not set activity but buts sets dnd 5 messages
Looking for Feedback on a little project of mine 35 messages
sullen rivet Hey guys ! I hope you are all doing well ! I am working a little project of mine that consists of modifying the way DJS ...
Maybe this isn't discord.js but yesyes 4 messages
quartz venture As you can see, if I try to use the command in a channel where a user has sent a message, it only shows that (or those) ...
Fetching ALL >10,000 server members 2 messages
long hemlock Hey is it possible to fetch all the server members? right now the limit is 10k
Verify Modal 17 messages
small vault Hey i have a problem i want to create a verify command with a modal my problem is i dont can send this modal
I cant put emojis in buttons. 69 messages
mortal badger const appealEmbed = new EmbedBuilder() .setTitle("Appeal A Moderator Action") .setDescription("If you receiv...
Requiring a specific role for a specific button. 24 messages
eternal depot So as I was in my testing phase, I created a ticket and noticed everyone could see the ticket. Can anyone have a look at...
node
getting a thread from an interaction 22 messages
primal lion i have a button that locks a thread once it's clicked only issue is i cant seem to figure out how to save the thread in...
Message missing Embeds that should be there. Restarting the bot fixes the problem. 2 messages
sturdy dagger This question is to continue the conversation started in <#824411059443204127> from here (https://discord.com/channels/2...
bun
The image is not sent 30 messages
unreal nest Hello. I would like that when a person joins my discord server a welcome image generated with canvas is sent in the welc...
Bot cant interaction.editReply() 3 messages
kind cedar My bot randomly cant send a interaction reply. Everything in the command works except `interaction.editReply()` and gett...
node
modal issue 3 messages
primal lion I've done literally everything i can think of to fix this issue https://pastebin.com/mMe7jiZH this is the code that's ...
intents issue 19 messages
soft galleon so this is my code const { token, default_prefix, color } = require("./config.json"); const Discord = require("discord.j...
How do I fully forward a message (embeds, files, attachments etc) 4 messages
how to remove a build in discord message 11 messages
primal lion how could i have the bot delete this message? I already have the line of code to delete a message but how do i target th...
Another problem again with chatgpt bot 37 messages
azure compass I run index.js which I watched a whole video and nothing will pop up in powershell after running it
Bot wont resond to dms (Yes I used ChatGPT) 74 messages
azure compass const { Client, GatewayIntentBits } = require('discord.js'); // Create a new client instance with the necessary intents...
Getting 'Missing Access' error when deleting channel even with ManageChannels permission 12 messages
sour jungle Hey, I am rather stumped with this one and thought this would be the best place to ask for help. I am trying to delete a...
node
How to send base64 2 messages
eternal vapor How? embed.setImage()
status activites 6 messages
wraith brook can i get a user or member activite or prescence what is he doing ?
invalid intents with v14 56 messages
node
How to make an "Authorized App"? 25 messages
shadow epoch Hey there! So recently someone who's better than me at coding showed me they made a "self-bot" of sorts that allowed sla...
node
automatically obtain guildId 14 messages
summer flicker how do i obtain guildId automatically ? i'm tired of setting the guildId manually in config
node
How can I send a message to this channel? 4 messages
acoustic hedge Hey, how can I send a message to this channel? ```js const { Events, EmbedBuilder } = require("discord.js"); const { db...
node
So im new to this and wanted to know this! 8 messages
Bot Online indicator 2 messages
tall vector How can I get rid of the green dot on a bot, like how "d.js docs" bot has no online green dot indicator in this server?
How do I do this? 8 messages
elfin holly How do I make it so that I can make a vehicle registration. Ex: Plate: UZP Vehicle Colour: Blue Vehicle Type: Porsche 9...
ERROR DISCPRDAPI 18 messages
modern veldt /Handlers/Commands.js ```js const { Client } = require("discord.js"); const { GUILDID } = require("../../Structures/conf...
roleUpdate Logs Entires Roles List For A Small Change On One Role 6 messages
blissful mist Whenever I Change The Slightest Thing On A Role It Fires The Event And Logs ALL The Roles Is There A Way It Targets The...
Problem with Modal Builders 9 messages
robust ember node:events:497 throw er; // Unhandled 'error' event ^ DiscordAPIError[50035]: Invalid Form Body data.custo...
How to send files through broadcastEval? 13 messages
restive bloom the error is due to an invalid file, the same does not happen when it is sent in the current client ```ts await this.cl...
Unknown interaction, sometimes 38 messages
lone elk The problem is that sometimes it works and sometimes it generates an error, and I've already tried it without using defe...