docs(BufferResolvable): add warning for URL input (#6451)

This commit is contained in:
ckohen
2021-08-17 13:44:37 -07:00
committed by GitHub
parent f294d1eff2
commit 16493e65fd

View File

@@ -90,7 +90,8 @@ class DataResolver extends null {
* Data that can be resolved to give a Buffer. This can be:
* * A Buffer
* * The path to a local file
* * A URL
* * A URL <warn>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</warn>
* @typedef {string|Buffer} BufferResolvable
*/