After the current addition of the history_slackr function, slackr_channel_history is no longer necessary. The documentation for history_slackr is much more thorough and it handles http errors more appropriately, so I moved the slackr_channel_history function to a "Deprecated Functions" section and added .Deprecated("history_slackr()") so when people try to use it, they get a message that it is deprecated and to use the history_slackr function instead.
In addition, I returned the actual error message from Slack instead of just the friendlier, but potentially incorrect, "Channel, channel, does not exist."
Description of Change
After the current addition of the
history_slackr
function,slackr_channel_history
is no longer necessary. The documentation forhistory_slackr
is much more thorough and it handles http errors more appropriately, so I moved theslackr_channel_history
function to a "Deprecated Functions" section and added.Deprecated("history_slackr()")
so when people try to use it, they get a message that it is deprecated and to use thehistory_slackr
function instead.In addition, I returned the actual error message from Slack instead of just the friendlier, but potentially incorrect, "Channel, channel, does not exist."