diff options
Diffstat (limited to 'src/plugins/corruptMp4s.ts')
-rw-r--r-- | src/plugins/corruptMp4s.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/corruptMp4s.ts b/src/plugins/corruptMp4s.ts index 5ae25ee..b9c3a11 100644 --- a/src/plugins/corruptMp4s.ts +++ b/src/plugins/corruptMp4s.ts @@ -99,7 +99,7 @@ export default definePlugin({ const newName = video.name.replace(/\.mp4$/i, ".corrupt.mp4"); const promptToUpload = findByCode("UPLOAD_FILE_LIMIT_ERROR"); const file = new File([buf], newName, { type: "video/mp4" }); - setImmediate(() => promptToUpload([file], ctx.channel, DRAFT_TYPE)); + setTimeout(() => promptToUpload([file], ctx.channel, DRAFT_TYPE), 10); } }] }); |