diff --git a/example/bot.js b/example/bot.js index 8505cb7e..27edf752 100644 --- a/example/bot.js +++ b/example/bot.js @@ -81,7 +81,7 @@ client.on("messageCreate", (message) => { }); } if (message.content == "file") { - const file = new File().setName("file.txt").setStream("hello world!"); + const file = new FileUpload().setName("file.txt").setStream("hello world!"); message.channel.send("", { files: [file], });