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.63k stars 1.12k forks source link

Keep UploadFile and UploadFileV2 signature consistent #1171

Open DestroyerAlpha opened 1 year ago

DestroyerAlpha commented 1 year ago

Description

Would it be possible to make UploadFileV2 analogous to UploadFile. The naming of the params struct as well as the expected parameters are different (e.g. UploadFile accepted a slice of channel IDs whereas UploadFileV2 only accepts a single channel as parameter.) A documentation or like a sample code for it will also help.

Following up from this https://github.com/slack-go/slack/issues/1108#issuecomment-1369936365