Class CurrentApplicationOptions
Represents a modification to apply to the bot user's current application.
public class CurrentApplicationOptions
- Inheritance
-
CurrentApplicationOptions
- Inherited Members
Properties
CoverImage
The application's cover image.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("cover_image")]
public ImageProperties? CoverImage { get; set; }
Property Value
CustomInstallUrl
The application's default custom install URL if enabled, otherwise null.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("custom_install_url")]
public string? CustomInstallUrl { get; set; }
Property Value
Description
The application's description.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("description")]
public string? Description { get; set; }
Property Value
EventWebhooksStatus
The application's configuration for webhook events.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("event_webhooks_status")]
public ApplicationEventWebhooksStatus? EventWebhooksStatus { get; set; }
Property Value
EventWebhooksTypes
A list of event webhook types that the application supports.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("event_webhooks_types")]
public IEnumerable<string>? EventWebhooksTypes { get; set; }
Property Value
EventWebhooksUrl
The application's event webhooks URL to receive webhook events.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("event_webhooks_url")]
public string? EventWebhooksUrl { get; set; }
Property Value
Flags
The application's public flags.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("flags")]
public ApplicationFlags? Flags { get; set; }
Property Value
Icon
The application's icon.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("icon")]
public ImageProperties? Icon { get; set; }
Property Value
InstallParams
The application's default in-application authorization URL if enabled, otherwise null.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("install_params")]
public ApplicationInstallParamsProperties? InstallParams { get; set; }
Property Value
IntegrationTypesConfiguration
A list of the application's default scopes and permissions, for each supported installation context.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("integration_types_config")]
public IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfigurationProperties>? IntegrationTypesConfiguration { get; set; }
Property Value
InteractionsEndpointUrl
The application's interactions endpoint URL.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("interactions_endpoint_url")]
public string? InteractionsEndpointUrl { get; set; }
Property Value
RoleConnectionsVerificationUrl
The application's role connection verification URL.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("role_connections_verification_url")]
public string? RoleConnectionsVerificationUrl { get; set; }
Property Value
Tags
A list of the application's tags, describing its content and functionality.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("tags")]
public IEnumerable<string>? Tags { get; set; }
Property Value
Remarks
A maximum of 5 tags is supported.
Methods
AddEventWebhooksTypes(params IEnumerable<string>)
A list of event webhook types that the application supports.
public CurrentApplicationOptions AddEventWebhooksTypes(params IEnumerable<string> eventWebhooksTypes)
Parameters
eventWebhooksTypesIEnumerable<string>
Returns
AddTags(params IEnumerable<string>)
A list of the application's tags, describing its content and functionality.
public CurrentApplicationOptions AddTags(params IEnumerable<string> tags)
Parameters
tagsIEnumerable<string>
Returns
Remarks
A maximum of 5 tags is supported.
WithCoverImage(ImageProperties?)
The application's cover image.
public CurrentApplicationOptions WithCoverImage(ImageProperties? coverImage)
Parameters
coverImageImageProperties?
Returns
WithCustomInstallUrl(string?)
The application's default custom install URL if enabled, otherwise null.
public CurrentApplicationOptions WithCustomInstallUrl(string? customInstallUrl)
Parameters
customInstallUrlstring
Returns
WithDescription(string?)
The application's description.
public CurrentApplicationOptions WithDescription(string? description)
Parameters
descriptionstring
Returns
WithEventWebhooksStatus(ApplicationEventWebhooksStatus?)
The application's configuration for webhook events.
public CurrentApplicationOptions WithEventWebhooksStatus(ApplicationEventWebhooksStatus? eventWebhooksStatus)
Parameters
eventWebhooksStatusApplicationEventWebhooksStatus?
Returns
WithEventWebhooksTypes(IEnumerable<string>?)
A list of event webhook types that the application supports.
public CurrentApplicationOptions WithEventWebhooksTypes(IEnumerable<string>? eventWebhooksTypes)
Parameters
eventWebhooksTypesIEnumerable<string>
Returns
WithEventWebhooksUrl(string?)
The application's event webhooks URL to receive webhook events.
public CurrentApplicationOptions WithEventWebhooksUrl(string? eventWebhooksUrl)
Parameters
eventWebhooksUrlstring
Returns
WithFlags(ApplicationFlags?)
The application's public flags.
public CurrentApplicationOptions WithFlags(ApplicationFlags? flags)
Parameters
flagsApplicationFlags?
Returns
WithIcon(ImageProperties?)
The application's icon.
public CurrentApplicationOptions WithIcon(ImageProperties? icon)
Parameters
iconImageProperties?
Returns
WithInstallParams(ApplicationInstallParamsProperties?)
The application's default in-application authorization URL if enabled, otherwise null.
public CurrentApplicationOptions WithInstallParams(ApplicationInstallParamsProperties? installParams)
Parameters
installParamsApplicationInstallParamsProperties
Returns
WithIntegrationTypesConfiguration(IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfigurationProperties>?)
A list of the application's default scopes and permissions, for each supported installation context.
public CurrentApplicationOptions WithIntegrationTypesConfiguration(IReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfigurationProperties>? integrationTypesConfiguration)
Parameters
integrationTypesConfigurationIReadOnlyDictionary<ApplicationIntegrationType, ApplicationIntegrationTypeConfigurationProperties>
Returns
WithInteractionsEndpointUrl(string?)
The application's interactions endpoint URL.
public CurrentApplicationOptions WithInteractionsEndpointUrl(string? interactionsEndpointUrl)
Parameters
interactionsEndpointUrlstring
Returns
WithRoleConnectionsVerificationUrl(string?)
The application's role connection verification URL.
public CurrentApplicationOptions WithRoleConnectionsVerificationUrl(string? roleConnectionsVerificationUrl)
Parameters
roleConnectionsVerificationUrlstring
Returns
WithTags(IEnumerable<string>?)
A list of the application's tags, describing its content and functionality.
public CurrentApplicationOptions WithTags(IEnumerable<string>? tags)
Parameters
tagsIEnumerable<string>
Returns
Remarks
A maximum of 5 tags is supported.