Skip to content

Commit

Permalink
fix(DataResolver): make Buffer from string (#8416)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syjalo committed Aug 8, 2022
1 parent 3a96ce7 commit e72b986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/util/DataResolver.js
Expand Up @@ -116,7 +116,7 @@ class DataResolver extends null {

if (typeof resource[Symbol.asyncIterator] === 'function') {
const buffers = [];
for await (const data of resource) buffers.push(data);
for await (const data of resource) buffers.push(Buffer.from(data));
return { data: Buffer.concat(buffers) };
}

Expand Down

0 comments on commit e72b986

Please sign in to comment.