slack-go / slack

Slack API in Go, originally by @nlopes; Maintainers needed, contact @parsley42

Home Page:https://pkg.go.dev/github.com/slack-go/slack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support Custom profile fields

Tozapid opened this issue · comments

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

@Tozapid this is already possible:

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