We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The default params are overwritten after each call to the .send method
.send
x
[ ]
Filling out the following details about bugs will help us solve your issue sooner.
@slack/client version: 4.1
@slack/client
node version: 8.10
OS version(s):
import { IncomingWebhook } from '@slack/client'; let incomingHook = new IncomingWebhook(process.env.SLACK_HOOK_URL, { channel: 'default-channel', }); incomingHook.send({ channel: 'alternative-channel', text: 'Hello World!' }); incomingHook.send('Hello Slack!');
The second message is sent to the default-channel.
The second message has been sent to the alternative-channel
The text was updated successfully, but these errors were encountered:
fix issue slackapi#534: default params must not be overwritten
d1354be
Merge pull request #535 from franckbrignoli/fix-issue-534
017ef50
fix issue #534: default params must not be overwritten
No branches or pull requests
Description
The default params are overwritten after each call to the
.send
methodWhat type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
@slack/client
version: 4.1node version: 8.10
OS version(s):
Steps to reproduce:
Expected result:
The second message is sent to the default-channel.
Actual result:
The second message has been sent to the alternative-channel
The text was updated successfully, but these errors were encountered: