-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Support message.toImage() method. #1913
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
Conversation
feat: change say() method response type from void to Message (wechaty#1866)
Merge wechaty/wechaty
Merge wechaty/wechaty
Merge wechaty master
Add reason for logout event (wechaty#1900)
Merge label and new friend search related methods
Merge master
Merge master
Merge master
Merge master
Related issue: #1871 |
src/user/image.ts
Outdated
@@ -0,0 +1,64 @@ | |||
import { instanceToClass } from "clone-class" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run npm run lint:es
before you send Pull Request, because we need to follow the original code styles.
src/user/message.ts
Outdated
@@ -966,6 +967,14 @@ export class Message extends Accessory implements Sayable { | |||
return fileBox | |||
} | |||
|
|||
public async toImage (): Promise<Image> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When adding a new API, please also add the related JS Docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-designed the Image class, please feel free to let me know if you have any questions.
Thanks for your re-design. Only one question about it: |
Please see my reply from the issue. We can archive that because we are now using |
OK, everything well. I will make some changes for |
I'm submitting a...
Checklist
Description
please describe the changes that you are making
for features, please describe how to use the new feature
please include a reference to an existing issue, if applicable
Does this PR introduce a breaking change?