diff --git a/DisCatSharp/Enums/Application/ApplicationFlags.cs b/DisCatSharp/Enums/Application/ApplicationFlags.cs index d4d72f8ac..a4a6e4874 100644 --- a/DisCatSharp/Enums/Application/ApplicationFlags.cs +++ b/DisCatSharp/Enums/Application/ApplicationFlags.cs @@ -1,108 +1,133 @@ // This file is part of the DisCatSharp project, based off DSharpPlus. // // Copyright (c) 2021-2022 AITSYS // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. using System; namespace DisCatSharp.Enums; /// /// Represents additional details of an application. /// [Flags] -public enum ApplicationFlags +public enum ApplicationFlags : long { /// /// The application is embedded and can be used by users. /// This was introduced to avoid users using in-dev apps. /// - EmbeddedReleased = 1 << 1, + EmbeddedReleased = 1L << 1, /// /// The application is a managed emoji. /// - ManagedEmoji = 1 << 2, + ManagedEmoji = 1L << 2, /// /// The application can create group dms. /// - GroupDmCreate = 1 << 5, + GroupDmCreate = 1L << 5, + + /// + /// Allows the application to access the local RPC server. + /// + RpcPrivateBeta = 1L << 5, + + /// + /// Allows the application to create activity assets. + /// + AllowAssets = 1L<<8, + + /// + /// Allows the application to enable activity spectating. + /// + AllowActivityActionSpectate = 1L<<9, + + /// + /// Allows the application to enable join requests for activities. + /// + AllowActivityActionJoinRequest = 1L<<10, /// /// The application has connected to RPC. /// - RpcHasConnected = 1 << 11, + RpcHasConnected = 1L << 11, /// /// The application can track presence data. /// - GatewayPresence = 1 << 12, + GatewayPresence = 1L << 12, /// /// The application can track presence data (limited). /// - GatewayPresenceLimited = 1 << 13, + GatewayPresenceLimited = 1L << 13, /// /// The application can track guild members. /// - GatewayGuildMembers = 1 << 14, + GatewayGuildMembers = 1L << 14, /// /// The application can track guild members (limited). /// - GatewayGuildMembersLimited = 1 << 15, + GatewayGuildMembersLimited = 1L << 15, /// /// The application can track pending guild member verifications (limited). /// - VerificationPendingGuildLimit = 1 << 16, + VerificationPendingGuildLimit = 1L << 16, /// /// The application is embedded. /// - Embedded = 1 << 17, + Embedded = 1L << 17, /// /// The application can track message content. /// - GatewayMessageContent = 1 << 18, + GatewayMessageContent = 1L << 18, /// /// The application can track message content (limited). /// - GatewayMessageContentLimited = 1 << 19, + GatewayMessageContentLimited = 1L << 19, /// /// Related to embedded applications. /// - EmbeddedFirstParty = 1 << 20, + EmbeddedFirstParty = 1L << 20, /// /// To be datamined. /// - UnknownFlag = 1 << 21, + UnknownFlag = 1L << 21, /// /// The application has registered global application commands. /// - ApplicationCommandBadge = 1 << 23 + ApplicationCommandBadge = 1L << 23, + + /// + /// Indicates if an app is considered active. This means that it has had any global command executed in the past 30 days. + /// + ActiveApplication = 1L << 24 }