mirror of
https://github.com/tsickert/discord-webhook.git
synced 2025-02-03 21:16:41 -05:00
Name blob
This commit is contained in:
parent
f72e1de0aa
commit
1ffc2fcbc6
3 changed files with 1 additions and 1 deletions
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
|
@ -34,7 +34,7 @@ export async function executeWebhook(
|
|||
if (filename !== '' || threadName !== '' || flags !== '') {
|
||||
const formData = new FormData()
|
||||
if (filename !== '') {
|
||||
formData.append('upload-file', await blob(createReadStream(filename)))
|
||||
formData.append('upload-file', await blob(createReadStream(filename)), filename)
|
||||
formData.append('payload_json', JSON.stringify(payload))
|
||||
}
|
||||
if (threadName !== '') {
|
||||
|
|
Loading…
Reference in a new issue