Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finally add the possibility to post picture 📷 #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NaNonnI
Copy link

@NaNonnI NaNonnI commented Jul 21, 2022

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
Copy link

CSFelix commented Sep 26, 2022

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

@NaNonnI
Copy link
Author

NaNonnI commented Nov 20, 2022

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