slack-ruby / slack-ruby/slack-ruby-client
Pins don't work in slackbot or direct message channels
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 222
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
Using the ruby api if it makes a difference
After posting a message:
I can pin a message in the #general channel
client.pins_add(channel:"#general", timestamp:_["ts"])
When I try to do the same in a personal or slackbot channel:
client.pins_add(channel:"@username", timestamp:ts)
or taking the channel code from the response from chat_postMessage
client.pins_add(channel:"E13R30LAG", timestamp:ts)
It fails with "channel not found"
Is this expected behaviour or am I doing something silly?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the pins_add entry point and reproduce the request for #general, @username, and the returned channel ID. Compare these cases with Slack's pinning API requirements; done means establishing whether the behavior is expected or identifying a client defect and a regression test scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100