-
Notifications
You must be signed in to change notification settings - Fork 336
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
get/set/delete user level persistent menu for context user #790
get/set/delete user level persistent menu for context user #790
Conversation
98f37b1
to
2b4b7da
Compare
@hch903 Please rebase or master release/1.5 to get the latest MessengerClient. |
… bottender instead (Yoctol#810)
Codecov Report
@@ Coverage Diff @@
## release/1.5 #790 +/- ##
===============================================
+ Coverage 81.08% 83.94% +2.85%
===============================================
Files 108 120 +12
Lines 4747 6190 +1443
Branches 1197 1534 +337
===============================================
+ Hits 3849 5196 +1347
- Misses 862 990 +128
+ Partials 36 4 -32
Continue to review full report at Codecov.
|
false, | ||
`getPersistentMenu: should not be called in context without session` | ||
); | ||
return; |
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.
return null;
@@ -207,6 +204,87 @@ class MessengerContext extends Context<MessengerClient, MessengerEvent> { | |||
); | |||
} | |||
|
|||
async getPersistentMenu( |
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.
Sorry my bad. Now I'd name it to getUserPersistentMenu
.
); | ||
} | ||
|
||
async setPersistentMenu( |
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.
setUserPersistentMenu
); | ||
} | ||
|
||
async deletePersistentMenu( |
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.
deleteUserPersistentMenu
get/set/delete user level persistent menu for context user