Fixed typecast of config object into Slack class