SethCohen

Results 4 comments of SethCohen

> Could you mess around with `file-type` (NPM) yourself and see what the recognized `mime` type is? I have a suspicion the fault arises from here: > > https://github.com/discordjs/discord.js/blob/0674820723ac9fe57cdd85acdd164a8a2305ea6d/packages/rest/src/lib/RequestManager.ts#L417 >...

> > Could the issue be due to it not being image/png? > > It... sure sounds like it, which would make this an API bug(?), probably. > > >...

I've managed to fix my issue on my side by changing [RequestManager](https://github.com/discordjs/discord.js/blob/main/packages/rest/src/lib/RequestManager.ts#L417) locally from ```js const contentType = file.contentType ?? (await fileTypeFromBuffer(file.data))?.mime; ``` to ```js const fileMime = (await fileTypeFromBuffer(file.data))?.mime...

https://pub.dev/packages/external_path seems to be a good alternative