diff options
Diffstat (limited to 'src/plugins/petpet.ts')
-rw-r--r-- | src/plugins/petpet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/petpet.ts b/src/plugins/petpet.ts index a8281d0..0d9a3d0 100644 --- a/src/plugins/petpet.ts +++ b/src/plugins/petpet.ts @@ -175,8 +175,8 @@ export default definePlugin({ gif.finish(); const file = new File([gif.bytesView()], "petpet.gif", { type: "image/gif" }); // Immediately after the command finishes, Discord clears all input, including pending attachments. - // Thus, setImmediate is needed to make this execute after Discord cleared the input - setImmediate(() => promptToUpload([file], cmdCtx.channel, DRAFT_TYPE)); + // Thus, setTimeout is needed to make this execute after Discord cleared the input + setTimeout(() => promptToUpload([file], cmdCtx.channel, DRAFT_TYPE), 10); }, }, ] |