-
Notifications
You must be signed in to change notification settings - Fork 394
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
Add client
to the list of args send through to listeners
#354
Comments
I think this is a good idea. There's no reason that I can think of that |
I agree this is a missing piece for common use cases. Regarding the possible changes, are you thinking to add |
Hey @seratch - definitely want to add client and logger as listener args, not context |
Description
Similar to #168, I'd like to propose that listeners (such as
event
,message
, etc.) be able to access the@slack/web-api
client. This would make it easier for listeners to make calls to the Web API methods while keeping the client rate-limit and queue-aware.Without this, I either need to initialize my own web client in each file with listeners or pass
app.client
around manuallyWhat type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: