discord-interactions-js
discord-interactions-js copied to clipboard
'arrayBuffer' is declared but its value is never read.
Refer to https://github.com/discord/discord-interactions-js/blob/main/src/index.ts#L96-L97
const arrayBuffer = value.buffer.slice(value.byteOffset, value.byteOffset + value.length);
return new Uint8Array(value);
ts warning...
'arrayBuffer' is declared but its value is never read.
So the question is arrayBuffer
didn't use when return, is this a bug or intend?
Looks like it is unused, and therefore should be removed