DeleteMessage
Task to delete existing Slack messages.
Last updated
Was this helpful?
Task to delete existing Slack messages.
Task version: 1.1.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
ChannelId : String
Channel ID where the message exists
Default: -
Example: C12345678
MessageTs : String
Timestamp of the message to delete.
Default: -
Example: 1234567890.123456
🗝Token : String
Slack OAuth token used for authentication.
The token owner must be the original message poster
or have appropriate permissions to delete the message.
Note: User tokens require the user to have authorized the app via OAuth
with appropriate scopes (e.g., "chat:write").
Default: -
Example: xoxb-123456789
ThrowErrorOnFailure : Boolean
True: Throw an exception.
False: Error will be added to the Result.Error.AdditionalInfo list instead of stopping the Task.
Default: True
Example: true
ErrorMessageOnFailure : String
Message what will be used when error occurs.
Default: Failed to delete message
Example: Task failed during execution
Success : Boolean
Indicates whether the message was deleted successfully.
Example: true
MessageTs : String
The timestamp (ID) of the deleted message.
Example: 1234567890.123456
Error : Error
Error that occurred during task execution.
Example: { Message = "Failed to delete Slack message.", AdditionalInfo = new Exception("Slack API returned 400 Bad Request") }
Changelog for Task Frends.Slack.DeleteMessage.
Improved error handling
Marked token as a password property
Initial implementation
Last updated
Was this helpful?
Was this helpful?

