📌  相关文章
📜  发送文件 discord js v12 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:42.651000             🧑  作者: Mango

代码示例1
//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);