rtCamp/action-slack-notify

Icon and Username not changing when using Slack Apps

ricardomarsanc opened this issue · 2 comments

Hi there!

I've started to use this bot and I wanted to customize the bot's name and icon depending on the channel (webhook) I'm using. the problem is that as Webhooks from Slack are deprecated, I started to use them from Apps, I've created an app called Announcements and now I just can receive messages always from the "Announcements" app and the custom icon and username are not set. Is there a workaround for this or just a bug related to the migration from the Webhook Integration to Slack Apps?

It appears to be a Slack limitation, unfortunately. From the docs about webhooks (by creating an app):

You cannot override the default channel (chosen by the user who installed your app), username, or icon when you're using Incoming Webhooks to post messages. Instead, these values will always inherit from the associated Slack app configuration.

https://api.slack.com/messaging/webhooks#:~:text=You%20cannot%20override%20the%20default%20channel%20(chosen%20by%20the%20user%20who%20installed%20your%20app)%2C%20username%2C%20or%20icon

Thanks to @scooper91 for answering.