djs-questions

9202 threads · Page 113 of 185

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. 17 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...
998292157150535700
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; ...
998292157150535700
What is the difference between autocomplete and string input options? 8 messages
slate basalt I'm kinda confused, how does autocomplete differ from normal string input options? If I understand correctly it is able ...
Emitter Not Firing 44 messages
dawn mica I'm currently using the `voiceStateUpdate` event emitter, and I believe I've come across a problem. When a user leaves t...
How can I retrieve messages from a channel with a script 3 messages
jagged geode I need to retrieve messages from a channel that only my discord client has access to, my bot does not have access to it
i need help to make it work. 4 messages
hearty wave i need help to make it work. https://drive.google.com/file/d/143vhAo3gx3IOuFPq4UAOEAhBtZ0RHc8L/view?usp=sharing
can someone check my bot file and fix some errors? thank you so much dms me 2 messages
Can you help me? 3 messages
hearty wave I'm learning to code a bot, can someone help me, if you're bothered, I'm sorry
Can ho support 1 messages
hearty wave I'm learning to code a bot, can someone help me, if you're bothered, I'm sorry
are the isCommand() is isText() etc, functions are going to get deprecated? 41 messages
hollow sandal i recall seeing this somewhere, but either im going crazy and i can't find it anywhere.
Discord bot not playing audio 5 messages
shrewd magnet Hey everyone, i just created my first discord music bot (or did my best attempt since i'm very new to discord.js or jav...
Help on code 5 messages
steel rampart Hello! New bot developer here! Can someone help me on how to make a level system? I can't seem to figure it out.. And i ...
Problem with oldMessage 2 messages
vital scarab Please tell me what to do. In Events.MessageUpdate oldMessage gives me a message in small letters, although I wrote in c...
user undefined 38 messages
torpid slate I am encounting following error: `TypeError: Cannot read properties of undefined (reading 'user')` Here is the code: ``...
Bot works on windows, but not on ubuntu. 29 messages
blissful holly I am following the tutorial for slash commands and have copied exactly what is in the documentation. When running the /u...
can someone help me with this doubt 6 messages
nimble wolf is there any way for me to link the slashcommands with the language of the person disagrees, example command /criar in p...
500 on editing thread parent interaction reply 10 messages
hushed void Hey there. I'm getting Internal Server Errors when attempting to edit an interaction response that is now the parent me...
Lightweight PermissionsBitField package 10 messages
rare wasp Hey! I want to use the PermissionsBitField class in an API of mine, without having to import all of DiscordJS. I did som...
Why do I have my commands twice? 15 messages
Discriminator showing up as #0 5 messages
polar kiln I have a dashboard for my discord bot and I have seen that the discriminator is showing up as 0 now and the username is ...
Why isnt my eventHandler being loaded? 25 messages
hallow briar ```js async function loadEvents(client) { const { loadFiles } = require('../Functions/fileLoader'); const ascii ...
How to allow a bot to receive DM's from server members 8 messages
empty crater Hello, I'm looking to see what I can do to make my bot allow DM's from server members. It currently says this: "Your mes...
How to respond to events that aren't messages? 12 messages
trail thicket iv'e been trying to make my bot welcome a user on joining, but im stuck at this point.
How do i make my bot welcome users when they join the guild? 11 messages
trail thicket I wanna make it so that my bot can welcome users when they join the guild, and a need to make it toggleable. Any pointer...
Check If Channel Permission is null 16 messages
random beacon So basically i have a voice channel with permissions set for user ids. am having trouble figuring out how to check if a ...
Why isnt this working. 5 messages
hallow briar ```error Error reading directory: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received...
banner 14 messages
fringe rampart How to display banner ? I tried to fetch user.bannerURL or banner, but it dosent work, i have this error ```error C:\Use...
How to send embed and common text in one message? 5 messages
quasi crystal it must look like message on the picture
member.createdAt 5 messages
cobalt perch What is the proper way to use member.createdAt? I have tried <t:${parseInt(member.createdAt / 1000)}:R> and it returned ...
discord.js bot help 39 messages
steep robin so I am trying to use this bot for my own personal use. the original owner has gave me permission to fork the bot obviou...
Commands not working for some reason 7 messages
deft cove after I turned on the bot and typed "-ping" in my server, it didn't do anything BUT if I say /ping the bot says "The app...
Assistance with registering commands and typescript 34 messages
oak hatch Hello, I was following the guide in the documentation and reached this point: `client.commands = new Collection();` I'v...
need help for register / commands (error) 15 messages
how to verify if the DM of an user is open/close? 2 messages
sinful fossil I make a modmail bot, but I don't find how to check if a DM is open or close. Is there a method to do that ? thx