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 check if div has a certain style 
Javascript :: drupal 8 link render array 
Javascript :: js is object empty 
Javascript :: remove extra space in string js 
Javascript :: react props.children proptype 
Javascript :: running shell commands javascript 
Javascript :: get height use js 
Javascript :: count child elements javascript 
Javascript :: javascript backticks and if statements 
Javascript :: how to get tomorrow date in javascript 
Javascript :: javascript to redirect to another page after 5 seconds 
Javascript :: shorthand for document.ready 
Javascript :: localsstorage array append element 
Javascript :: javascript detect touch screen 
Javascript :: jquery datepicker no past dates 
Javascript :: javascript get current time 
Javascript :: jquery detect when a checkbox is checked 
Javascript :: get browser language 
Javascript :: aws secret manager nodejs javascript 
Javascript :: convert number to comma separated format javascript 
Javascript :: if str contains jquery 
Javascript :: how express serve public folder 
Javascript :: remove session storage 
Javascript :: copyright in javascript 
Javascript :: iseven js 
Javascript :: kill node process windows 
Javascript :: find difference between string js 
Javascript :: node read file line 
Javascript :: alpinejs tabs 
Javascript :: node js pre-commit hook bypass 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =