maknz / slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax.
BSD 2-Clause "Simplified" License
1.17k stars 204 forks source link

Mistake in Slack/Client.php #3

Closed jonasrydenhag closed 10 years ago

jonasrydenhag commented 10 years ago

if (isset($attributes['channel'])) $this->setChannel($attributes['username']);

This sets the username as the channel and generates an error when posting to Slack.

maknz commented 10 years ago

Thanks for posting. Will fix this shortly.