djs-questions

9202 threads · Page 105 of 185

How do i make commands 2 messages
stiff dew ```js const {Client, Events, GatewayIntentBits} = require('discord.js'); const client = new Client({intents: [GatewayI...
Fetch more than 100 messages in a channel 36 messages
fallow trout Hey, I know that I shouldn't fetch more than 100 messages but it's a bot in one server so I wanted to know if there is a...
Embed with slash command 2 messages
woeful tiger I want that embed command will take embed info from embed.js file but not from index.js It is possible?
How can i kick all members who doesnt have any role? 94 messages
gusty roost DJS
I can't download discordjs opus 11 messages
severe rivet Hi there I can't download djsopus I try many things like delete node module and rebuild the project but gave it this err...
998292157150535700
Get around deferReply's lag 19 messages
calm barn i'm trying to get around the lag caused by awaiting message.deferReply constantly, i'd like to do message.deferReply wit...
@discordjs/rest 10 messages
winter musk Hi i just installed discordjs/rest for slash commands but there is a error message now someone know how to fix it
Giving a member permission to change permissions in a selected channel 4 messages
pale island What is supposed to happen: User gets permission to change permissions in a selected voice channel What happens: User d...
Edit a database when mute/warn is over 15 messages
median raft So, I did a command to mute (using timeout method, no problem, it works), same for warn (simple message). For each and e...
How to limit my fields (embed) 10 messages
silent sapphire Hello, i explain my problem (sry im french)
MessageCollector not working 7 messages
pseudo compass I am trying to get the content of the response so I can save it as a variable and move onto the next bit of information ...
What permissions does the bot need to have on the guild to detect the 'interactionCreate' event? 2 messages
radiant hearth I want to tag roles, use 'interactionCreate' event and send messages in channels but I'm confused
Modal imput question 5 messages
rotund birch In current version of discord js can you insert into modal some other components than TextInputBuilder? I cannot see t...
why the icon icon_url not working 14 messages
umbral dove it doesnt show the icon_url
Embed with discordjs/rest 6 messages
wise prairie Can you send embeds using discordjs/rest? I have only sent strings using rest.post but I was wondering if I could build ...
Missing permissions while trying to ban someone 32 messages
plush lichen ```js throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData); ...
why this is not working? 3 messages
prime lotus ```ex const Discord = require('discord.js'); const client = new Discord.Client({ intents: [ Discord.GatewayIntentB...
how to do the invisible status but online 3 messages
past elbow Like this
How to use "Events"? 7 messages
timid pecan Hi, I want to make audit log but i do not know to use "Events". I can not find correctly source. Could you give example ...
998292157150535700
The expected type comes from property 'content' which is declared here on type 'InteractionReplyOpti 23 messages
buoyant basin ```js const type: string = this.options.interaction.deferred || this.options.interaction.replied ? "editReply" : "reply...
Ram issues with new version 15 messages
paper iron Soo I run a rather small bot that used around 600mb of ram before the most recent version so discord.js. Now with the ne...
Re-run bot command 6 messages
wooden adder I'm creating a bot that has multiple steps that a user navigates using buttons. I have a "back" button that I would lik...
Unkown Interaction Error 3 messages
chrome dawn ```2|Wave| DiscordAPIError[10062]: Unknown interaction 2|Wave| at handleErrors (/root/Wave/node_modules/@discordjs/r...
channel.send() sending duplicates 11 messages
solar venture Im still having problems with channel.send() sending duplicate messages even though it is inside of a for loop and it sh...
UNHANDLED_REJECTION: DiscordAPIError: Unknown Message 19 messages
halcyon hollow Hello, I have some issues about my bot. To explain where the errors come from is when I delete RulesMessage even if it d...
i get this error but i don't know how to fix it 38 messages
open thistle i will post a photo rn
Max messages in cache is not working 6 messages
atomic portal Hello, i remark that the limit max for messages is broken, I don't have makeCache parameter in client variable So, my bo...
General question 1 messages
bitter nest what is this named in discord.js
jackpot balance keeps making new data? 1 messages
forest depot i do not know why but in my code it keeps making new data everytime even if it already exsists here is the code please h...
setAvatar() setInterval() 30 messages
dusk violet what would be too fast to update the avatar? i would like to make it as often as possible without getting ratelimited wo...
I want to make an audit log to my server. 11 messages
timid pecan Where can I find all the events like "MemberAdd" or "MemberBanned" for this?
How to shuffle my warnlist ? 56 messages
silent sapphire Hello, i explain ( Im french).
sharding rate limit 3 messages
blissful raven Hi if I got rate limited after adding sharding from restarting too much to test, should I leave the bot trying to restar...
Listing of notes doesnt work 10 messages
silent sapphire Hi, i explain (sry im french)
i have error 8 messages
rare trellis why this error ocurr Error: getaddrinfo EAI_AGAIN discord.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:...
Extending EmbedBuilder class 21 messages
mint dagger Hello I created this Embed class to always have the same color and footer on my embeds. However, I'd like the setFooter ...
@discordjs/core interaction create type error 7 messages
clear veldt Hi, I am creating a bot using @discordjs/core and it seems to be having issues with TypeScript when I do `i.data.data?.n...
998292157150535700
Check Ban list 12 messages
hidden grove Hello, Is it possible to check if a person is already in the ban list? I looked on the internet but nothing worked (mayb...
Best way to update bot 4 messages
tribal goblet Can i upgrade my bot directly from a v12 bot to a v14 - or would it be recommended to go v13>v14
Forking Discord.js 2 messages
tall pier Hi, I needed to add some lines in discord.js package so I forked the repository and edited what I wanted, then replaced ...
Attached image sending before embed? Not within 14 messages
tall cloak Why is this happening?
`interactionCreate.js DiscordAPIError 39 messages
frank pine `interactionCreate.js DiscordAPIError[10062]: Unknown interaction` How to fix bot unavailable due to this error please h...
998292157150535700
Route specifc ratelimits 2 messages
muted ice I need to run multiple bulkDeletes in a multiple channels. The problem is that discord.js's rest implementation does not...
mobile bot 2 messages
coral stream can we make a discord.js bot on mobile (if we can do please tell me the apps)
Hosting public bot 8 messages
raven charm Hello there, i would like to ask anyone who is more experience with hosting public bot, how to make it public, simply, l...
Rate Limiting 3 messages
muted ice Does the global rate get increased when connecting through multiple shards. Or do i have to manually half it in the rest...
Markups? 3 messages
stark fog Hi, are there markups or markdowns for discord js bot? I was looking for it but i only found somthing for discord chat i...
Receiving HTTP Requests 23 messages
wise prairie I want to be able to receive HTTP requests, do some processing on the JSON and then post that to a discord channel. Are ...
Pressing button results in TypeError: Cannot read properties of undefined (reading 'execute') 12 messages
hallow moth I will send the code for my interactionCreator.js, bot.js and deleteAll.js files below
Authenticate a discord-rpc app only once 2 messages
remote grove i have managed to build a working discord-rpc app but every time i start it the popup comes up asking for permission, ho...
1003448629866020986