Mr-KayJayDee / discord-image-generation

Moved to a new repository
https://git.mrkayjaydee.xyz/Mr-KayJayDee/discord-image-generation
53 stars 13 forks source link

(node:17124) UnhandledPromiseRejectionWarning: TypeError [REQ_RESOURCE_TYPE]: The resource must be a string, Buffer or a valid file stream. #5

Closed Oxadeum closed 4 years ago

Oxadeum commented 4 years ago

Hello ! ^^

I have a problem with my code The error is in the title

My code :

Code

Mr-KayJayDee commented 4 years ago

Hello, change js let lisaImage = new DIG.LisaPresentation().getImage(textInImage);

with

let lisaImage = await new DIG.LisaPresentation().getImage(textInImage);

Oxadeum commented 4 years ago

Thank's for your help ^^

And for the error in my command delete ?

Code Delete

Mr-KayJayDee commented 4 years ago

Your welcome, what is the error on this one ?

Oxadeum commented 4 years ago

(node:16692) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'displayAvatarURL' of undefined

Mr-KayJayDee commented 4 years ago

message.author doesn't have a .user property so you can change it to message.member

Oxadeum commented 4 years ago

Thank's you very much, your modules is so good :)

Mr-KayJayDee commented 4 years ago

Haha, thank you, feel free to open a new issue if you have another question. 😉