how can i log discord move and disconnect when a user move another user or he disconnected user
how can i get the move or disconnected user and the executor i can reach to do this please can someone help with it ?
Issue understanding collector filters
Hi all, I was recently working on learning and integrating collector filters for my code so that if a user who didnt start the interaction tries to press a button reply, it wont work for them. I believe what I need is a collector filter. Based on the discord.js guide and documentation I tried to set one up like this:
```js
//Define the collector for the button components
            const collector = interaction.channel.createMessageComponentCollector({
                componentType: ComponentType.BUTTON,...
member is of type 'unknown'
I'm building a command in typescript, and have the following:
```ts
const members = await interaction.guild.members.fetch();
console.log(members);
for (const [id, member] of Object.entries(members)) {...
expiring warn
Hi, im new into discord bots/js and i want to do a warn command, but with expiring date. is it possible? if yes, how?
Webhooks
I want to ask what are webhooks...? what is their purpose with djs and outside...? what can webhooks do and their limitations...? can discord webhooks only send messages...? Is there a way i can use webhooks to connect to some other website/app...like making my own app and getting discord messages on my app than on this interface or it is seemingly not possible at all... how is it done then? Tell me like i know nothing about them...
SlashCommandBuilder error
Im trying to make a command that would dm a specified user a embed.
I am aware that there have been questions like this, but I didnt really understood them very well.
Error in screenshots
import { SlashCommand } from "../types";...

IsJsonEncodable is not a function
Im pretty new in the discord bot community, so my error might be pretty stupid.
So basically I am making a botstats command and the bot starts just fine but when I run the command it will crash and give this error (image), This is my code:
```ts
import { SlashCommandBuilder } from "@discordjs/builders";
import { CommandInteraction, EmbedBuilder } from "discord.js";...

My Bot won't post a .gif file from it's Assets folder
It's been a long time since I worked on a bot last and I've been revisiting my old bot that runs my server. I've updated the API, downloaded all the up to date NPM and discord.js files and my bot is sending messages just like normal.
The issue I'm experiencing is that my bot will not send .gif or any images from it's Assets folder. I first started with the old code from when I first made the bot:
if (message.content == "Major Ruin"...Audit log event 12 get guild
I have the d.js release "main", i do not know which version it is, but i think it is v14, https://replit.com/@OttiOtta/HelperBot#index.js my code, there is no bug, but but a question, in index.js, i have an automod based on audit log, and i need the guild object/id to make punishments. How to get the guild object from audit log events is the question.
channel.isTextBased is not a function?
hey! i'm trying to make a channel every time the user clicks a button. the code used to work but isn't anymore and i'm not sure why, it says channel.isTextBased is not a function

add role
hi so ive been trying a lot to make this work but it just wont
```js
if (command === "addrole") {
    if (!message.member.permissions.has(PermissionsBitField.Flags.ManageRoles)) {...
cannot recieve direct messages
i have partials (which apparently has been the solution for literally everyone else on this planet)
code: ```js
const client = new Client({
  intents: [...
Trying to get the ban command to work
I have been having issues with my ban command for some time I need it so I can ban their ID and also mention them within the command this is so I can ban them outside the server. Here is my code https://pastebin.com/Mzmh1dmH