You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I've been using PSSlack for the last couple of days, and I have noticed a small inconsistency between commands "Send-SlackFile" and "Send-SlackMessage".
I have created an Slack App, and I am using its token to authenticate, send a message to Slack with Send-SlackMessage, and after completing a task locally, send a PDF file with Send-SlackFile. However, the first message appears as sent by the app, but the file is marked as sent by the user that created the app (in that case, me).
Just for the sake of it, I tried to associate a bot to the app and use its token, getting the same result: the messages are displayed as sent by the app, and the file is marked as uploaded by the bot.
Checking the files for both commands, it seems like Send-SlackMessage is using and sending username information, but Send-SlackFile is not, and that could be the cause on the inconsistency.
I don't know if there's a way to solve this (maybe an option that I'm not aware of), but if there isn't, it would be cool to have it, or at least unify both behaviours, so everything is displayed as sent by the same user.
The text was updated successfully, but these errors were encountered:
I am experiencing the same exact issue, the other issue here is when sending the file as the owner of the app/token it ends up going to different channel when sending directly to user rather than a channel.
For instance if I use the Send-SlackMessage -Channel '@UserName' ... -UserName 'SomeAppName' this shows up for a user in thier slackbot channel.
However when using the Send-SlackFile -Channel '@UserName' it comes from the owner of the app.
This is inconvenient when you may want to send a Message and a file to user, for the two messages to end up in different channels/messages threads.
Hello! I've been using PSSlack for the last couple of days, and I have noticed a small inconsistency between commands "Send-SlackFile" and "Send-SlackMessage".
I have created an Slack App, and I am using its token to authenticate, send a message to Slack with Send-SlackMessage, and after completing a task locally, send a PDF file with Send-SlackFile. However, the first message appears as sent by the app, but the file is marked as sent by the user that created the app (in that case, me).
Just for the sake of it, I tried to associate a bot to the app and use its token, getting the same result: the messages are displayed as sent by the app, and the file is marked as uploaded by the bot.
Checking the files for both commands, it seems like Send-SlackMessage is using and sending username information, but Send-SlackFile is not, and that could be the cause on the inconsistency.
I don't know if there's a way to solve this (maybe an option that I'm not aware of), but if there isn't, it would be cool to have it, or at least unify both behaviours, so everything is displayed as sent by the same user.
The text was updated successfully, but these errors were encountered: