how to check if a message has an attachment discord js

Solutions on MaxInterview for how to check if a message has an attachment discord js by the best coders in the world

showing results for - "how to check if a message has an attachment discord js"
Livia
09 Oct 2018
1if (<Message>.attachments.size > 0) {
2  //DO STUFF
3}
Norah
12 Feb 2017
1if(Message.attachments.size) {
2  //Code
3}