discord.js - Imagine a πŸ‘»

DIA

discord.js - Imagine a πŸ‘»

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

jackpot balance keeps making new data?

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 help

setAvatar() setInterval()

what would be too fast to update the avatar? i would like to make it as often as possible without getting ratelimited would every 15 minutes be too often?...

I want to make an audit log to my server.

Where can I find all the events like "MemberAdd" or "MemberBanned" for this?

How to shuffle my warnlist ?

Hello, i explain ( Im french).

sharding rate limit

Hi if I got rate limited after adding sharding from restarting too much to test, should I leave the bot trying to restart or shut it down?

Listing of notes doesnt work

Hi, i explain (sry im french)

i have error

why this error ocurr Error: getaddrinfo EAI_AGAIN discord.com at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) { errno: -3001, code: 'EAI_AGAIN',...

Extending EmbedBuilder class

Hello I created this Embed class to always have the same color and footer on my embeds. However, I'd like the setFooter to override only when it's not specified when calling the class. How could I make this ? ```js const { EmbedBuilder } = require('discord.js'); const { DateNow } = require('./utils');...

@discordjs/core interaction create type error

Hi, I am creating a bot using @discordjs/core and it seems to be having issues with TypeScript when I do i.data.data?.name to get the name of the command, doing debugging I can see that name does exist under there but TypeScript is saying it doesn't. I could get around this by using any but my code doesn't allow any for many reasons. Is there a reason for this?

Check Ban list

Hello, Is it possible to check if a person is already in the ban list? I looked on the internet but nothing worked (maybe I made a mistake). For the moment I have this code that allows to ban a person only if he has the ban permissions (otherwise there is a message Missing Permissions)...

Best way to update bot

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

Hi, I needed to add some lines in discord.js package so I forked the repository and edited what I wanted, then replaced the discord.js version in package.json with the forked repo like this : "discord.js": "git+https://github.com/my-username/discord.js.git#main", I ran npm install and I got this error :...

`interactionCreate.js DiscordAPIError

interactionCreate.js DiscordAPIError[10062]: Unknown interaction How to fix bot unavailable due to this error please help

Route specifc ratelimits

I need to run multiple bulkDeletes in a multiple channels. The problem is that discord.js's rest implementation does not provide the raw response and only keeps track of global ratelimits. How can i make my application obey the dynamic ratelimits of a specific route then?

mobile bot

can we make a discord.js bot on mobile (if we can do please tell me the apps)

Hosting public bot

Hello there, i would like to ask anyone who is more experience with hosting public bot, how to make it public, simply, like i just need to make my code universal - not my server specific, especially when i am getting guildID - what i do when i host bots for personal use is that i create config file and there i define something like "DISCORD_GUILD_ID: <ID_HERE>" where <ID_HERE> is guild ID of my server, and every time i want to use code further like to get player's ID or whatever i used to get the config value (ID of my guild) and use that, instead, should i just grab the current guildID of the server on which the function of bot is executed? I hope you understand my concerns Thank you in advance to anyone who answer ...

Rate Limiting

Does the global rate get increased when connecting through multiple shards. Or do i have to manually half it in the rest options of each shard for example?

Markups?

Hi, are there markups or markdowns for discord js bot? I was looking for it but i only found somthing for discord chat itself not for code.. is there something like that?