Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js find word inside comment

var words = ["insert", "your", "words"]

for (var i=0; i < words.length; i++) {

 if (message.content.includes(words[i])) {

  // YOUR CODE

 }

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #word #comment
ADD COMMENT
Topic
Name
7+9 =