SlackClientWrapper Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public class SlackClientWrapper
type SlackClientWrapper = class
Public Class SlackClientWrapper
- Inheritance
-
SlackClientWrapper
Constructors
| SlackClientWrapper(SlackClientWrapperOptions) |
Initializes a new instance of the SlackClientWrapper class. Creates a Slack client by supplying the access token. |
Properties
| Identity |
Gets the user identity. |
| Options |
Gets the SlackClientWrapperOptions. |
Methods
| DeleteMessageAsync(String, DateTime, CancellationToken) |
Wraps Slack API's DeleteMessageAsync method. |
| GetBotUserIdentity(Activity) |
Get the bot user id associated with the team on which an incoming activity originated. This is used internally by the SlackMessageTypeMiddleware to identify direct_mention and mention events.
In single-team mode, this will pull the information from the Slack API at launch.
In multi-team mode, this will use the |
| LoginWithSlackAsync(CancellationToken) |
Manages the login to Slack with the given credentials. |
| PostMessageAsync(NewSlackMessage, CancellationToken) |
Posts a message to Slack. |
| TestAuthAsync(CancellationToken) |
Wraps Slack API's TestAuthAsync method. |
| UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken) |
Wraps Slack API's UpdateAsync method. |
| VerifySignature(HttpRequest, String) |
Validates the local secret against the one obtained from the request header. |