djs-questions

13317 threads · Page 114 of 267

Custom Emoji formatting issue 9 messages
gusty thistle I am trying to use custom emojis from a server I own for my bot. The bot is in this server and has admin perms in a diff...
Handler Exported Function Not being registered globaly 22 messages
Need help for storing and access Token from data.json 13 messages
neat girder i want to access token from data.json which is stored like this ```js { "userID":"token", }``` token is stored for ever...
How can I use an prefix instead of slash? 32 messages
glossy arch Explain it simple please, first time using discord.js
I'm coming from BDFD I'm Gonna Try And Make A RR Bot 3 messages
drowsy chasm How would you do that?
Client only deploys 3-4 slash commands 18 messages
dawn zephyr Hey, I have 7 slash commands that I want to deploy but I can't (it only deploys 3 or 4). ```js const { REST, Routes } = ...
What is the easiest way to edit multiple permissionOverwrites? 38 messages
waxen jay So far i have tried <TextChannel>.edit, but this overrides all current permissions. So i've spread those into an array a...
Memory leak 15 messages
Member timeout event? 32 messages
worthy spruce I want to send an automatic message and save some data on a DB when a member get's timed out using the discord timeout f...
function is not a function??? 61 messages
tacit prairie ```js client.on(eventName, async (arg) => { for (const eventFile of eventFiles) { const even...
Does discord.js update a guild's scheduled events cache if one is changed 4 messages
gaunt blade I just ran a test where I looked through a guild's scheduled event, before and after I changed a property on it, and the...
Bot not editing embed as expected 3 messages
fleet mesa ```js const existingMessages = await dchannel.messages.fetch({ limit: 1 }); const existingMessage = existingMess...
Managing roles with name/id 13 messages
modern bison Hi, my server have a role predefined called "officer", how could I dynamicaly get this role id ?
slash command: list with addMentionableOption 5 messages
modern bison Hi, I would like to know if this is possible to give the ability to make a list of multiple mentionable input from a sla...
What is the "remove role from member" code 9 messages
umbral dove ..
one time command 11 messages
umbral dove Hi, I just want to know how can I make a command that can be used by a user only once in his life?
Duplicating Embeds 5 messages
rancid carbon Whenever I go to edit my embed they duplicate but the buttons that went to the other embed still control the top one.
How do I make a role system 6 messages
rancid carbon When a user clicks on a button then a value on a embed field changes and then when the other button is pressed the other...
How to let the bot read the chat history? 5 messages
tribal slate I have come across something like "channel.messages.fetch", but I'm not sure if this is still a working way to make the ...
@discordjs package
The Docs website is not working? 3 messages
tribal slate I wanted to check some available function of the api, but realised the below website seems not working. https://old.disc...
Detecting user select menus 14 messages
rancid carbon It wont print whenever I run it.
Slash command error 5 messages
fringe crown ***why is it showing this when i run `/wave` in chat?*** main code: `require('dotenv').config(); const { Client, Intents...
Discord Voice Bot 8 messages
violet knoll I'm new to setting up discord bots and have been working on some small functions. Just trying to learn how things work. ...
get client from interaction 4 messages
inner kraken Is there a way to get the bot client from an interaction?
Attaching a select menu to a message 5 messages
pure skiff My code: ```js const select = new StringSelectMenuBuilder() .setCustomId('Select') .setPlacehold...
How to fetch a guild from the cache on another shard 3 messages
formal smelt Hello, I am making a command that needs the functionality of fetching a guild from the cache, however it is a sharded bo...
discord bot geneateur error 59 messages
languid sable index.js:26 Uncaught DiscordAPIError DiscordAPIError: Invalid Form Body embed.fields[1].value: This field is required ...
help discord bot generator 24 messages
languid sable can you help me
Property 'description' does not exist on type 'ApplicationCommandData'. 6 messages
open forge Hi yall, so I have this code here (https://sourceb.in/1t4I7PyZPo) but keep getting an error saying that description does...
Help me with python and code this bot 3 messages
queen glade Can someone help me code a bot that does things in game etx /buy if they have enough its buys what ever in the shop
Would allocating functionality to separate bots increase performance 4 messages
lime bane I don't fully understand the performance of discord.js, but I have a bot that controls the project management aspect of ...
editReply after deferReply don't works 15 messages
worthy gyro ```ts console.log("hi1") await interaction.editReply(`Pong! `) console.log("hi2") ``` - it's in an async function - it...
Catch deleted messages with Events.GuildAuditLogEntryCreate 9 messages
frozen robin Hi, I have problem with this code. As you can see on video it logs only one random message when it wants and when rest o...
Help me 15 messages
oak maple Who error Anyone Can Fix?
How to fetch discordjs, mdn, nodejs docs and return something below 4 messages
vernal hearth <PackageName> - <Type> <ObjName>: (if constructor) new <...>(...) returns ...
Error shows when i type in "node. /src/index.js 14 messages
fringe crown `PS C:\Users\GAL0004\Desktop\Amethyst> node ./src/index.js node:internal/modules/cjs/loader:1051 throw err; ^ Error...
presenceUpdate event emitter doesn't return activity channelId 3 messages
dawn mica I'm using the `presenceUpdate` event to detect when an activity has been started. But I need to get the channel the acti...
How to change a user's server profile name using the bot 2 messages
thin stag How do I change the server profile name for a user with a specified user ID?
Bot won't respond 27 messages
fringe crown Bot is in my server but wont respond to my commands whenever i type `^help` in chat. Is there anything wrong with the t...
Unknown interaction 5 messages
sleek shuttle I don't come across this error message often, typically encountering it only once every 20 times I give a command. I am ...
Dublicate shard. Many client instances for one shard. 18 messages
floral torrent Hello everyone, I'm using this code for a bot (https://github.com/iamnotacoder-djs/DiscordBotIda) and trying to run shar...
Get number of messages Member sent in the Guild 2 messages
latent thicket When you search in the guild for a member you will see that the "Results" represent the number of messages a user has ev...
Counting Deleted Channels 5 messages
gusty crescent Hello. I have a ModMail bot. I've successfully got the bot to count posted channels (tickets), but I don't know how to ...
extremeley weird issue with closing DM's between bot and user 51 messages
wicked sphinx I've been trying to solve this for the past 3 days <:catuncanny:1124148922869350462> 1. I have a function which makes ...
Does djs/rest just wait until the cf ban is over? 9 messages
stark lynx What I exactly mean with this is that I checked the source of djs/rest and notice that I only find a wait until its unbl...
@discordjs package
Send welcome message in random channel when bot is invited! 23 messages
rancid carbon ```js client.on(Events.GuildCreate, g => { const channel = g.channels.cache.find(channel => channel.type === 'text...
`Cannot read properties of undefined (reading 'send')` when fetching guild members 60 messages
severe idol Hi! I got some weird error while fetching the members list of my guild. I believe this is a lib bug, but I want to make ...
Slash Command Question 2 messages
gloomy flame Is there any way to get more than one options for example in getRole?
Modal Field Not Found (for field that was never on there to begin with) 7 messages
lapis osprey Hey, This error keeps popping up where apparently it's looking for a field with the custom ID "name," but that's just n...
Code saying the command doesn't exist 9 messages
rapid bridge ```js client.on(Events.InteractionCreate, async interaction => { if (!interaction.isChatInputCommand()) return; ...
@discordjs package