Answers for "discord js send file from string"

1

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);
Posted by: Guest on March-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language