Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if message mentions users discord js

// 1st Way
if (<Message>.mentions.members.size) { // or message.mentions.members.size > 0
  //DO STUFF
}

// 2nd Way
if (<Message>.mentions.members.first()) {
  //DO STUFF
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #message #mentions #users #discord #js
ADD COMMENT
Topic
Name
1+1 =