Skip to content

Slack direct messages not working #369

@pastorhudson

Description

@pastorhudson

It seems sending to a user ID in slack doesn't work like I used to?
If I try:
self.say("Test message", channel = self.message.data.sender.id)
I get back:
Fri, 20 Jul 2018 23:43:29 [ERROR] I was asked to post to the slack U08FPSYTW channel, but it doesn't exist.
When I send a direct message to the bot and:
print(self.message.data.channel.id)
It prints DBH45HA59. I can't figure out how to get DBH45HA59 from the user U08FPSYTW.
@Ashex Any ideas on how to send DM through the slack backend?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions