-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from Color-Chan/dev
Dev -> Main
- Loading branch information
Showing
9 changed files
with
331 additions
and
64 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/Color-Chan.Discord.Core/Common/API/Params/Application/DiscordCreateTestEntitlement.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,18 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Color_Chan.Discord.Core.Common.API.Params.Application; | ||
|
||
/// <summary> | ||
/// Represents a discord Create Test Entitlement API request model. | ||
/// </summary> | ||
/// <param name="SkuId">The sku to grant entitlement to, as Discord for this value.</param> | ||
/// <param name="OwnerId">The guild_id or user_id to grant entitlement to.</param> | ||
/// <param name="OwnerType">1 for a server subscription, 2 for a user subscription.</param> | ||
public record DiscordCreateTestEntitlement( | ||
[property: JsonPropertyName("sku_id")] | ||
ulong SkuId, | ||
[property: JsonPropertyName("owner_id")] | ||
ulong OwnerId, | ||
[property: JsonPropertyName("owner_type")] | ||
int OwnerType | ||
); |
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
Oops, something went wrong.