slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42
https://pkg.go.dev/github.com/slack-go/slack
BSD 2-Clause "Simplified" License
4.6k stars 1.11k forks source link

Add support Custom profile fields #1241

Closed Tozapid closed 8 months ago

Tozapid commented 8 months ago

Description

It will be great if we add support for custom profile fields

(Optional) Slack's documentation

API: https://api.slack.com/methods/users.profile.set

wolveix commented 8 months ago

@Tozapid this is already possible:

err := slackUserClient.SetUserCustomFields(userId, map[string]slack.UserProfileCustomField{
    fieldId: {
        Value: fieldValue,
    },
})