Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

send file discord js v12

//For Discord.Js v12

const { MessageAttachment } = require("discord.js");

const file = new MessageAttachment("your_file.png"); 
//for a file on projects root if your file is in another subfolder just type the relative path to it 

message.channel.send(file); 
 
PREVIOUS NEXT
Tagged: #send #file #discord #js
ADD COMMENT
Topic
Name
4+4 =