action-slack-notify icon indicating copy to clipboard operation
action-slack-notify copied to clipboard

Icon and Username not changing when using Slack Apps

Open ricardomarsanc opened this issue 2 years ago • 1 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?

ricardomarsanc avatar Jun 02 '22 12:06 ricardomarsanc

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

scooper91 avatar Aug 03 '22 10:08 scooper91

Thanks to @scooper91 for answering.

L0RD-ZER0 avatar Mar 11 '24 13:03 L0RD-ZER0