-
-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Features] Automod member profile moderation, new application fields,…
… use clyde ai & guild invenory settings (#2791) * guild inventory settings * `UseClydeAI` (1L << 47) permission * automod member profile moderation * Dnet: The Enums update (new application fields) * ah yeah, `IApplication` * some oversights * y did I change this * oh bruh nvm * `CreateGuildExpressions` permission --------- Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
- Loading branch information
Showing
28 changed files
with
692 additions
and
119 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/Discord.Net.Core/Entities/Applications/ApplicationDiscoverabilityState.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,34 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationDiscoverabilityState | ||
{ | ||
/// <summary> | ||
/// Application has no discoverability state. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Application is ineligible for the application directory. | ||
/// </summary> | ||
Ineligible = 1, | ||
|
||
/// <summary> | ||
/// Application is not listed in the application directory. | ||
/// </summary> | ||
NotDiscoverable = 2, | ||
|
||
/// <summary> | ||
/// Application is listed in the application directory. | ||
/// </summary> | ||
Discoverable = 3, | ||
|
||
/// <summary> | ||
/// Application is featureable in the application directory. | ||
/// </summary> | ||
Featureable = 4, | ||
|
||
/// <summary> | ||
/// Application has been blocked from appearing in the application directory. | ||
/// </summary> | ||
Blocked = 5, | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Discord.Net.Core/Entities/Applications/ApplicationExplicitContentFilterLevel.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,14 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationExplicitContentFilterLevel | ||
{ | ||
/// <summary> | ||
/// Media content will not be filtered. | ||
/// </summary> | ||
Disabled = 0, | ||
|
||
/// <summary> | ||
/// Media content will be filtered. | ||
/// </summary> | ||
Enabled = 1, | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Discord.Net.Core/Entities/Applications/ApplicationInteractionsVersion.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,14 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationInteractionsVersion | ||
{ | ||
/// <summary> | ||
/// Only Interaction Create events are sent as documented (default). | ||
/// </summary> | ||
Version1 = 1, | ||
|
||
/// <summary> | ||
/// A selection of chosen events are sent. | ||
/// </summary> | ||
Version2 = 2, | ||
} |
80 changes: 80 additions & 0 deletions
80
src/Discord.Net.Core/Entities/Applications/ApplicationMonetizationEligibilityFlags.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,80 @@ | ||
using System; | ||
|
||
namespace Discord; | ||
|
||
/// <summary> | ||
/// Gets the monetization eligibility flags for the application combined as a bitfield. | ||
/// </summary> | ||
[Flags] | ||
public enum ApplicationMonetizationEligibilityFlags | ||
{ | ||
/// <summary> | ||
/// The application has no monetization eligibility flags set. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Application is verified. | ||
/// </summary> | ||
Verified = 1 << 0, | ||
|
||
/// <summary> | ||
/// Application is owned by a team. | ||
/// </summary> | ||
HasTeam = 1 << 1, | ||
|
||
/// <summary> | ||
/// Application has the message content intent approved or uses application commands. | ||
/// </summary> | ||
ApprovedCommands = 1 << 2, | ||
|
||
/// <summary> | ||
/// Application has terms of service set. | ||
/// </summary> | ||
TermsOfService = 1 << 3, | ||
|
||
/// <summary> | ||
/// Application has a privacy policy set. | ||
/// </summary> | ||
PrivacyPolicy = 1 << 4, | ||
|
||
/// <summary> | ||
/// Application's name is safe for work. | ||
/// </summary> | ||
SafeName = 1 << 5, | ||
|
||
/// <summary> | ||
/// Application's description is safe for work. | ||
/// </summary> | ||
SafeDescription = 1 << 6, | ||
|
||
/// <summary> | ||
/// Application's role connections metadata is safe for work. | ||
/// </summary> | ||
SafeRoleConnections = 1 << 7, | ||
|
||
/// <summary> | ||
/// Application is not quarantined. | ||
/// </summary> | ||
NotQuarantined = 1 << 9, | ||
|
||
/// <summary> | ||
/// Application's team members all have verified emails. | ||
/// </summary> | ||
TeamMembersEmailVerified = 1 << 15, | ||
|
||
/// <summary> | ||
/// Application's team members all have MFA enabled. | ||
/// </summary> | ||
TeamMembersMfaEnabled = 1 << 16, | ||
|
||
/// <summary> | ||
/// Application has no issues blocking monetization. | ||
/// </summary> | ||
NoBlockingIssues = 1 << 17, | ||
|
||
/// <summary> | ||
/// Application's team has a valid payout status. | ||
/// </summary> | ||
ValidPayoutStatus = 1 << 18, | ||
} |
19 changes: 19 additions & 0 deletions
19
src/Discord.Net.Core/Entities/Applications/ApplicationMonetizationState.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,19 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationMonetizationState | ||
{ | ||
/// <summary> | ||
/// Application has no monetization set up. | ||
/// </summary> | ||
None = 1, | ||
|
||
/// <summary> | ||
/// Application has monetization set up. | ||
/// </summary> | ||
Enabled = 2, | ||
|
||
/// <summary> | ||
/// Application has been blocked from monetizing. | ||
/// </summary> | ||
Blocked = 3, | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Discord.Net.Core/Entities/Applications/ApplicationRpcState.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,29 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationRpcState | ||
{ | ||
/// <summary> | ||
/// Application does not have access to RPC. | ||
/// </summary> | ||
Disabled = 0, | ||
|
||
/// <summary> | ||
/// Application has not yet been applied for RPC access. | ||
/// </summary> | ||
Unsubmitted = 1, | ||
|
||
/// <summary> | ||
/// Application has submitted a RPC access request. | ||
/// </summary> | ||
Submitted = 2, | ||
|
||
/// <summary> | ||
/// Application has been approved for RPC access. | ||
/// </summary> | ||
Approved = 3, | ||
|
||
/// <summary> | ||
/// Application has been rejected from RPC access. | ||
/// </summary> | ||
Rejected = 4, | ||
} |
29 changes: 29 additions & 0 deletions
29
src/Discord.Net.Core/Entities/Applications/ApplicationStoreState.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,29 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationStoreState | ||
{ | ||
/// <summary> | ||
/// Application does not have a commerce license. | ||
/// </summary> | ||
None = 1, | ||
|
||
/// <summary> | ||
/// Application has a commerce license but has not yet submitted a store approval request. | ||
/// </summary> | ||
Paid = 2, | ||
|
||
/// <summary> | ||
/// Application has submitted a store approval request. | ||
/// </summary> | ||
Submitted = 3, | ||
|
||
/// <summary> | ||
/// Application has been approved for the store. | ||
/// </summary> | ||
Approved = 4, | ||
|
||
/// <summary> | ||
/// Application has been rejected from the store. | ||
/// </summary> | ||
Rejected = 5, | ||
} |
24 changes: 24 additions & 0 deletions
24
src/Discord.Net.Core/Entities/Applications/ApplicationVerificationState.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,24 @@ | ||
namespace Discord; | ||
|
||
public enum ApplicationVerificationState | ||
{ | ||
/// <summary> | ||
/// Application is ineligible for verification. | ||
/// </summary> | ||
Ineligible = 1, | ||
|
||
/// <summary> | ||
/// Application has not yet been applied for verification. | ||
/// </summary> | ||
Unsubmitted = 2, | ||
|
||
/// <summary> | ||
/// Application has submitted a verification request. | ||
/// </summary> | ||
Submitted = 3, | ||
|
||
/// <summary> | ||
/// Application has been verified. | ||
/// </summary> | ||
Succeeded = 4, | ||
} |
100 changes: 100 additions & 0 deletions
100
src/Discord.Net.Core/Entities/Applications/DiscoveryEligibilityFlags.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,100 @@ | ||
using System; | ||
|
||
namespace Discord; | ||
|
||
/// <summary> | ||
/// Gets the discovery eligibility flags for the application combined as a bitfield. | ||
/// </summary> | ||
[Flags] | ||
public enum DiscoveryEligibilityFlags | ||
{ | ||
/// <summary> | ||
/// The application has no eligibility flags. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Application is verified. | ||
/// </summary> | ||
Verified = 1 << 0, | ||
|
||
/// <summary> | ||
/// Application has at least one tag set. | ||
/// </summary> | ||
Tag = 1 << 1, | ||
|
||
/// <summary> | ||
/// Application has a description. | ||
/// </summary> | ||
Description = 1 << 2, | ||
|
||
/// <summary> | ||
/// Application has terms of service set. | ||
/// </summary> | ||
TermsOfService = 1 << 3, | ||
|
||
/// <summary> | ||
/// Application has a privacy policy set. | ||
/// </summary> | ||
PrivacyPolicy = 1 << 4, | ||
|
||
/// <summary> | ||
/// Application has a custom install URL or install parameters. | ||
/// </summary> | ||
InstallParams = 1 << 5, | ||
|
||
/// <summary> | ||
/// Application's name is safe for work. | ||
/// </summary> | ||
SafeName = 1 << 6, | ||
|
||
/// <summary> | ||
/// Application's description is safe for work. | ||
/// </summary> | ||
SafeDescription = 1 << 7, | ||
|
||
/// <summary> | ||
/// Application has the message content intent approved or uses application commands. | ||
/// </summary> | ||
ApprovedCommands = 1 << 8, | ||
|
||
/// <summary> | ||
/// Application has a support guild set. | ||
/// </summary> | ||
SupportGuild = 1 << 9, | ||
|
||
/// <summary> | ||
/// Application's commands are safe for work. | ||
/// </summary> | ||
SafeCommands = 1 << 10, | ||
|
||
/// <summary> | ||
/// Application's owner has MFA enabled. | ||
/// </summary> | ||
MfaEnabled = 1 << 11, | ||
|
||
/// <summary> | ||
/// Application's directory long description is safe for work. | ||
/// </summary> | ||
SafeDirectoryOverview = 1 << 12, | ||
|
||
/// <summary> | ||
/// Application has at least one supported locale set. | ||
/// </summary> | ||
SupportedLocales = 1 << 13, | ||
|
||
/// <summary> | ||
/// Application's directory short description is safe for work. | ||
/// </summary> | ||
SafeShortDescription = 1 << 14, | ||
|
||
/// <summary> | ||
/// Application's role connections metadata is safe for work. | ||
/// </summary> | ||
SafeRoleConnections = 1 << 15, | ||
|
||
/// <summary> | ||
/// Application is eligible for discovery. | ||
/// </summary> | ||
Eligible = 1 << 16, | ||
} |
Oops, something went wrong.