Answers for "how to check if a message has an attachment discord js"

1

how to check if a message has an attachment discord js

if (<Message>.attachments.size > 0) {
  //DO STUFF
}
Posted by: Guest on March-13-2020
0

how to check if a message has an attachment discord js

if(Message.attachments.size) {
  //Code
}
Posted by: Guest on May-30-2021

Code answers related to "how to check if a message has an attachment discord js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language