discord-screenshot icon indicating copy to clipboard operation
discord-screenshot copied to clipboard

DeprecationWarning

Open VIRUXE opened this issue 3 years ago • 3 comments

Happens the first time you take a screenshot.

(node:824) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use FXServer --trace-deprecation ... to show where the warning was created)

VIRUXE avatar Jan 22 '22 04:01 VIRUXE

Happens the first time you take a screenshot.

(node:824) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use FXServer --trace-deprecation ... to show where the warning was created)

Go to dist folder edit server.js Search : new Buffer(0) Replace with : Buffer.allocUnsafe(0)

supermanBH avatar Jan 24 '22 12:01 supermanBH

Happens the first time you take a screenshot. (node:824) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use FXServer --trace-deprecation ... to show where the warning was created)

Go to dist folder edit server.js Search : new Buffer(0) Replace with : Buffer.allocUnsafe(0)

Having the same issue, but searching for that does not retrieve nothing. imagem

tugapower0 avatar Jun 05 '23 21:06 tugapower0

Did found this one: a.getBuffer()

No idea if its that we must change to make the warning go away.

tugapower0 avatar Jun 05 '23 21:06 tugapower0