send file discord js

Solutions on MaxInterview for send file discord js by the best coders in the world

showing results for - "send file discord js"
Tiberius
21 Feb 2018
1message.channel.send("Testing message.", { files: ["./images/headpat1.png"] });
2//pls like if this worked!
3
4// The file variable has to be an array 
5// even if you want to send one file. 
6// But because it is an array you can send multiples files. 
7
8// For exemple:
9message.channel.send("Testing message.", {
10  files: [
11    "./images/headpat1.png",
12    "./images/headpat2.png"
13  ]
14});
15