send buffer as file
Is there a way to convert buffer to buffer resolvable or anything that message.channel.send({files:[]}) supports
2 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!:typealias: BufferResolvable
@14.15.2
Data that can be resolved to give a Buffer. This can be:* A Buffer* The path to a local file* A URL When provided a URL, discord.js will fetch the URL internally in order to create a Buffer. This can pose a security risk when the URL has not been sanitized