-
-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] Get current bot application information (#2619)
* initial commit * Add support for modifying current bot's app
- Loading branch information
Showing
16 changed files
with
282 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Discord.Net.Core/Entities/Applications/ModifyApplicationProperties.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace Discord; | ||
|
||
/// <summary> | ||
/// Represents properties used to modify current application's bot. | ||
/// </summary> | ||
public class ModifyApplicationProperties | ||
{ | ||
/// <summary> | ||
/// Gets or sets the http interactions endpoint configured for the application. | ||
/// </summary> | ||
public Optional<string> InteractionsEndpointUrl { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the role connections verification endpoint configured for the application. | ||
/// </summary> | ||
public Optional<string> RoleConnectionsEndpointUrl { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the description of the application. | ||
/// </summary> | ||
public Optional<string> Description { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets application's tags | ||
/// </summary> | ||
public Optional<string[]> Tags { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the icon of the application. | ||
/// </summary> | ||
public Optional<Image?> Icon { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Discord.Net.Rest/API/Rest/ModifyCurrentApplicationBotParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Discord.API.Rest; | ||
|
||
internal class ModifyCurrentApplicationBotParams | ||
{ | ||
[JsonProperty("interactions_endpoint_url")] | ||
public Optional<string> InteractionsEndpointUrl { get; set; } | ||
|
||
[JsonProperty("role_connections_verification_url")] | ||
public Optional<string> RoleConnectionsEndpointUrl { get; set; } | ||
|
||
[JsonProperty("description")] | ||
public Optional<string> Description { get; set; } | ||
|
||
[JsonProperty("tags")] | ||
public Optional<string[]> Tags { get; set; } | ||
|
||
[JsonProperty("icon")] | ||
public Optional<Image?> Icon { get; set; } | ||
} |
Oops, something went wrong.