Skip to content

Instantly share code, notes, and snippets.

@TheTrollErrorsGuy65
Created January 9, 2018 16:35
Show Gist options
  • Save TheTrollErrorsGuy65/2d4763d4da821e499bedce70ff7cce4a to your computer and use it in GitHub Desktop.
Save TheTrollErrorsGuy65/2d4763d4da821e499bedce70ff7cce4a to your computer and use it in GitHub Desktop.
AntiLink source code (Discord.js)
@TheTrollErrorsGuy65
Copy link
Author

how can I make for example the bot just delete a message on one specify channel?

Copy everything from line 10 to 24, cut it.
In its place, add:

if(message.channel.id == 'Channel ID') {

Paste all the code you copied here. Then, at the end of code you pasted, add }.
Sorry for late response, please reply if something goes wrong.

@DziveQ
Copy link

DziveQ commented Nov 5, 2019

image

@renato425
Copy link

what if I edit this message? will he block anyway?

@renato425
Copy link

DziveQ, it may be your version of Discord.js... change your version :)

@josemurillo94
Copy link

Can I make it skip some roles and if I let them post links?

@SimonEXE
Copy link

How can I add it to my index.js file? So that I have it extra.

@discordhelp25
Copy link

how i can add it in event handler

@Kiniusss
Copy link

Kiniusss commented May 3, 2021

image

@pratik12350
Copy link

Guys it's trash

@paradox-glitch
Copy link

For those looking for a better solution
Gist - detectLink.js

@upking23ry
Copy link

upking23ry commented Dec 18, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment