-
Notifications
You must be signed in to change notification settings - Fork 656
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
Unable to set user status without a typescript error #1703
Comments
hi, @richardaum! Thanks for your question 🙌 At first glance of the parameter declaration and types provided for
I would try something like this: const profileStringify = JSON.stringify({
status_text: "riding a train",
status_emoji: ":mountain_railway:",
status_expiration: 0,
})
app.client.users.profile.set({
profile: profileStringify,
}); |
hi, @richardaum! 👋 I got an update from a member of our team that this issue was also able to recreated on their end and they've been working on adding some more type safety to the node SDK - their WIP PR can be found here. They're hoping to land a release candidate for these changes this week, which will be in When |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
With 7.0 out now, this should no longer be an issue, but a workaround as mention is available to JSON.stringify the relevant field for web-api 6.x. |
The code related to set profile info is not properly defined on Typescript. That is because its parameters are not correct:
Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
@slack/types
Reproducible in:
The Slack SDK version
3.16.0
Node.js runtime version
v21.4.0
OS info
ProductName: macOS
ProductVersion: 13.6.2
BuildVersion: 22G320
Darwin Kernel Version 22.6.0: Thu Nov 2 07:43:57 PDT 2023; root:xnu-8796.141.3.701.17~6/RELEASE_ARM64_T6000
Steps to reproduce:
Submit the following code to Typescript:
Expected result:
No errors
Actual result:
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: