Skip to content

Commit

Permalink
Adding IncomingWebhook to OauthV2AccessResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Feb 3, 2023
1 parent 019066d commit c359a1e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions SlackNet/WebApi/Responses/OauthV2AccessResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,29 @@ public class OauthV2AccessResponse : OauthAccessResponse
#nullable disable

public AuthedUser AuthedUser { get; set; }

public IncomingWebhook IncomingWebhook { get; set; }
}

public class IncomingWebhook
{
/// <summary>
/// The name of the channel that the user selected as a destination for webhook messages.
/// </summary>
public string Channel { get; set; }

/// <summary>
/// The ID of the same channel.
/// </summary>
public string ChannelId { get; set; }

/// <summary>
/// A link to the page that configures your app within the workspace it was installed to.
/// </summary>
public string ConfigurationUrl { get; set; }

/// <summary>
/// The Incoming Webhook URL.
/// </summary>
public string Url { get; set; }
}

0 comments on commit c359a1e

Please sign in to comment.