hiarcs
DIAdiscord.js - Imagine an app
•Created by hiarcs on 10/9/2024 in #djs-questions
TypeError [ERR_INVALID_ARG_TYPE]: The "stream" argument must be an instance of Stream.
my bot has been running fine in production for years but today i'm getting this message on startup with no changes of any kind:
i'm using bun and djs 14.16.3
3 replies
DIAdiscord.js - Imagine an app
•Created by hiarcs on 10/22/2022 in #djs-questions
How to create an attachment without using AttachmentBuilder?
i'm trying to attach an image inside of a
broadcastEval
. i have the image converted into a dataURI string, and i'm rebuilding it in the broadcastEval
using Buffer.from
. but i'm not aware of any way to create the attachment with calling new AttachmentBuilder
, which doesn't work in broadcastEval
.
here's my code:
4 replies