mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
docs(BufferResolvable): add warning for URL input (#6451)
This commit is contained in:
@@ -90,7 +90,8 @@ class DataResolver extends null {
|
|||||||
* Data that can be resolved to give a Buffer. This can be:
|
* Data that can be resolved to give a Buffer. This can be:
|
||||||
* * A Buffer
|
* * A Buffer
|
||||||
* * The path to a local file
|
* * 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
|
* @typedef {string|Buffer} BufferResolvable
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user