Skip to content
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

Sending private message #84

Open
lamvann opened this issue Aug 30, 2018 · 4 comments
Open

Sending private message #84

lamvann opened this issue Aug 30, 2018 · 4 comments

Comments

@lamvann
Copy link

lamvann commented Aug 30, 2018

Hi, I tried sending a private message but I keep getting a 'channel_not_found' error using the following command:

slack chat send 'Hello world!' @Adel

Note: I can successfully send messages to channel, however i need to send private messages now

Complete error message:
jq: error (at <stdin>:0): Cannot iterate over null (null)
jq: error (at <stdin>:0): Cannot iterate over null (null)
{ "ok": false, "error": "channel_not_found" }

@rockymadden
Copy link
Owner

rockymadden commented Oct 24, 2018

@lamvann, thank you. I can also confirm the behavior. Queued up.

@rockymadden
Copy link
Owner

rockymadden commented Oct 26, 2018

@lamvann, upon further research I cannot reproduce. My message above was user error, as I put the channel first instead of second. Can you try this curl command:

$ curl -s -X POST https://slack.com/api/users.list --data-urlencode "token=${SLACK_CLI_TOKEN}"

I am curious if you can find the user at hand in the list by another username than they now have, there are permission issues, etc.

@rockymadden
Copy link
Owner

I added the ability to look up by display name as well: #92

@bmc08gt
Copy link

bmc08gt commented Feb 5, 2019

#100 fully resolves this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants