Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

blacklisted word discord.js

    let blacklisted = ['word', 'word'];
    let foundInText = false;
    for (var i in blacklisted) {
      if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) foundInText = true;
    }
    if (foundInText) {
      message.delete();
      Message.channel.send();
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery append after number of chars in string 
Javascript :: create primary key in mongodb 
Javascript :: get value of textarea jquery 
Javascript :: angular img tag 
Javascript :: Laravel JSON Where Query 
Javascript :: for loop java script 
Javascript :: switch react router 
Javascript :: appendchild on specific position 
Javascript :: react concatenate string and component 
Javascript :: Vue 3 script setup props emits 
Javascript :: how to get data-target value in jquery 
Javascript :: js check if a string is a number 
Javascript :: expressjs req.body.parameters 
Javascript :: angular how to copy text with button 
Javascript :: string padStart padEnd 
Javascript :: flatten json python 
Javascript :: react code 
Javascript :: Content security policy (csp) javascript 
Javascript :: add event listener to all a tags 
Javascript :: add class name in html 
Javascript :: download datepicker js 
Javascript :: js get the filename you uploaded 
Javascript :: framer motion for react 
Javascript :: mui react outlined input helperText 
Javascript :: js get datatable attr value on click 
Javascript :: Uncaught TypeError: theme.spacing is not a function 
Javascript :: async map js 
Javascript :: node-schedule job on specific datetime 
Javascript :: javascript get cpu cores 
Javascript :: nestjs swagger 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =