Not able to get the bot to reply when I say a specific message.
My friend and I are working on making a discord bot. We're trying to make it so when you type something specific, it'll reply. Take the ping/pong example. If I type ping, my bot will reply with pong. However, we have tried using YouTube tutorials to do this, and even if we copy word for word, it doesn't reply to "ping". We even tried using ChatGPT, and when we pasted our code, it said our code was correct and it should work. We really need help on this problem because it doesn't seem like we're...
good practices for project structure for a discord bot?
hi there!
im new to the api as a whole and got kinda bummed out that is still writen in js and doesnt go in depth on project structure like other apis/packages that are more opinionated on its use, could someone guide me? i followed the docs and wrote it in typescript and this post https://sabe.io/tutorials/how-to-build-discord-bot-typescript but doesnt go more in depth, is there a good repo or example project that helps with these kinds of things? specially in discord.js typescript, thank you in advance!...

I don't know how Events works
So, i was trying to make events out of index and i don't know how to make them perfectlly, i tried using the info on docs, but it doesnt leave any error, just don't do anything.
Im a bit new to js coding, so idk how to call functions at index
So, i want to make at different files (for not having all the coding on the index.js) the line of commands like "client.on()" and saving them on a folder, is there any way to make it?
how can i run cmd in visual studio code
how can i use discord js in vscode i am new in programming so i need extended help

2 days and i'm still trying to fix this internal error :(
```
client.application._patch(data.application);
^
TypeError: client.application._patch is not a function...
my reaction isn't being passed from one script to another.
Passing
```client.on(Events.MessageReactionAdd, async (reaction, member) => {
let r = reaction;
let rM = reaction.member;...
[FIXED] TypeError (reading 'user') when creating threads
Started having this error pop up on two bots different bots starting around <t:1686789295>
```
TypeError: Cannot read properties of null (reading 'user')
at GuildMemberManager._add (/home/pi/Desktop/yellow/node_modules/discord.js/src/managers/GuildMemberManager.js:39:47)
at ThreadMember._patch (/home/pi/Desktop/yellow/node_modules/discord.js/src/structures/ThreadMember.js:51:47)...
MemberRemove call when I kick my bot
When I kick my bot of a server, I think that the event "MemberRemive" is called, and it makes a bug : ```java
node_modules@discordjs\rest\dist\index.js:640
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
...
Error fetching guild on client ready event
I have a function that will check for all guilds that have member count enabled
However this specific group of code seems to always fail to fetch the guild, even tho when evaluating the same code it succeeds.
This specific line
const guild = await client.guilds.fetch(g.guild).catch(() => {}); always returns void or undefined. Even tho the provided guild ID is valid.
This function is called from the ClientReady event....Why use @discordjs/broker rather than node-redis-pubsub?
I can imagine there being a benefit for discord.js-based applications, but i'm not sure what it is
bulkDelete error
so i'm trying to use bulkDelete but if the message is over 2 weeks it won't delete, thats fine but when I get the error it will exit the process even if I use try, is there anyway I can check if I can bulkDelete the message?
Get interaction of an interaction
Hi ! I wanted to know, with discord.js
14.11.0, there is a way to get an interaction sourced of another.
To explain, I want to modify an embed with context menu and a modal (the modal appear after i click on the context menu action) and with that, I don't know how I can get the message of context menu when I submit all fields of the modal.
https://github.com/Les-Moddeurs-Francais/Moddeur-Ultime/tree/suggestions...trying to do a starboard system
https://sourceb.in/TFctbjoT1p
setting the channel is fine and is entered in the database, but nothing gets sent to the channel so i figured it was my event...
disable select menu
I was told i cant do it but I just wanna ask here to make sure, am i able to disable an option in a select menu?
Channel Permissions
hey im trying to get a specific role permission in a channel and copy its perms with another role
in another word duplicatiing the role permission in the same channel.
for example i got a role named Verified with set of permissions in some channels , and i wanna add another role named Verifed 2 to those channels which has verified role in them and copying its perm.
...