Closed Nico8400 closed 5 years ago
Try putting just the path in the "file" field. without the fs.readFileSync(). (same goes to the png file actually)
bot.uploadFile({
to: channelID,
file: "blush.gif"
})
Add a Callback like :
bot.uploadFile({...},(err,res) => console.log(err))
And say what (if any) error is there?
This is what I used before trying the method with FS and the results are the same. I cannot try it right now but I think that the gif file size might be the issue(I'm still able to share the gif myself tho). I will re-open the issue if it's not resolved by using a smaller gif.
When trying to upload a gif the bot won't do anything. Trying to upload a .png works fine. There's also no error in the logs. The part of the that handle this looks like this :