Ask coding questions

← Back to all posts
Hello can someone help me ASAP
GaaraTutorials (0)

My discord is SP Gaara#7107 please contact me and I wanna make a log example if someone made and edit or deleted a message or did anything a log appears on the text channel I want so I need some help

Commentshotnewtop
Zavexeon (303)

https://discord.js.org/#/docs/

Try looking into the docs. What you are looking for are events.

Ex:

client.on('messageDelete', () => {
    //do something here!
});

What the above does is raises an event when a message is deleted. What it does when that happens is up to you :)

GaaraTutorials (0)

@Zavexeon
hello can we talk in discord? cuz I don't understand it well so add me
SP Gaara#7107

so I can understand more

Zavexeon (303)

@GaaraTutorials Hey, I'm not available in discord at the moment, but please consider joining the repl.it official discord server if you are not in it already. Their are plenty of people who can help there (I suggest eankeen for js).

Invite link to repl.it discord: https://repl.it/discord

GaaraTutorials (0)

@Zavexeon
Alright thanks alot I will join it but should I do the following:

client.on('messageDelete', () => {

( Here I wanna make it an embed like if you see I have for the edit its done but I wanna do for the message deletion and if someone moved someone from a voice channel to another ( Move Log is the most important to be honest ) and thanks again rlly

});