Skip to content

Finally add the possibility to post picture 馃摲 - #83

Open
NaNonnI wants to merge 1 commit into
Androz2091:masterfrom
NaNonnI:master
Open

Finally add the possibility to post picture 馃摲#83
NaNonnI wants to merge 1 commit into
Androz2091:masterfrom
NaNonnI:master

Conversation

@NaNonnI

@NaNonnI NaNonnI commented Jul 21, 2022

Copy link
Copy Markdown

Future update will come.
How to use;
-With web picture (request-promise):

const imageBuffer = await get({
url: 'https://picsum.photos/800/800', // random picture with 800x800 size
encoding: null, // this is required, only this way a Buffer is returned
});
let post = client.user.postPicture(imageBuffer, "Test!")
if (post) return message.chat.sendMessage("Post茅!")

-Picture on disk (fs):
const path = await readFileAsync("../../image.jpeg");
let post = client.user.postPicture(path, "Test!")
if (post) return message.chat.sendMessage("Post茅!")

Future update will come.
How to use;
-With web picture (request-promise):

const imageBuffer = await get({
    url: 'https://picsum.photos/800/800', // random picture with 800x800 size
    encoding: null, // this is required, only this way a Buffer is returned
});
let post = client.user.postPicture(imageBuffer, "Test!")
if (post) return message.chat.sendMessage("Post茅!")

-Picture on disk (fs):
const path = await readFileAsync("../../image.jpeg");
let post = client.user.postPicture(path, "Test!")
if (post) return message.chat.sendMessage("Post茅!")
@CSFelix

CSFelix commented Sep 26, 2022

Copy link
Copy Markdown

Hii, do you have a schedule day to release this update?

@NaNonnI

NaNonnI commented Nov 20, 2022

Copy link
Copy Markdown
Author

Hii, do you have a schedule day to release this update?

Hey sorry I am really busy at the moment but I can search to add the tag option and location option, we will see later (but don't hope too much, if you want the option to post picture just add my code in the package)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants