-
Notifications
You must be signed in to change notification settings - Fork 395
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
Fix #382 Missing invite_requested event type #387
Conversation
Codecov Report
@@ Coverage Diff @@
## master #387 +/- ##
==========================================
+ Coverage 83.13% 83.68% +0.54%
==========================================
Files 7 7
Lines 510 527 +17
Branches 148 151 +3
==========================================
+ Hits 424 441 +17
Misses 57 57
Partials 29 29
Continue to review full report at Codecov.
|
src/types/events/base-events.ts
Outdated
date_created: number; | ||
requester_ids: string[]; | ||
channel_ids: string[]; | ||
invite_type: string; |
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.
there are three specific strings the invite_type
value can be: restricted
, ultra_restricted
, or full_member
. source: https://api.slack.com/admins/inviting#events
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.
@aoberoi Good catch! I just modified it to be more specific. 👍
This one is also the same to #359 (comment) |
Summary
This pull request fixes #382 by adding a new event type to base-events.ts
https://api.slack.com/events/invite_requested
@aoberoi @stevengill @shaydewael
If you're aware of some fields that need to be optional, please point them out. 🙏
Requirements (place an
x
in each[ ]
)