Skip to content

Commit

Permalink
fix: add missing permission "Use External Apps"
Browse files Browse the repository at this point in the history
  • Loading branch information
Lulalaby committed Jul 23, 2024
1 parent ffecde9 commit e6a059b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions DisCatSharp/Enums/Guild/Permission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public static class PermissionMethods
/// <summary>
/// Gets the full permissions enum (long).
/// </summary>
internal static Permissions FullPerms { get; } = (Permissions)562949953421311L;
internal static Permissions FullPerms
=> (Permissions)1125899906842623L;

/// <summary>
/// Calculates whether this permission set contains the given permission.
Expand Down Expand Up @@ -77,7 +78,7 @@ public enum Permissions : long
/// Indicates all permissions are granted.
/// </summary>
[PermissionString("All Permissions")]
All = 562949953421311L,
All = 1125899906842623L,

/// <summary>
/// Allows creation of instant channel invites.
Expand Down Expand Up @@ -377,7 +378,15 @@ public enum Permissions : long
/// Allows members to send polls.
/// </summary>
[PermissionString("Send Polls")]
SendPolls = 1L << 49
SendPolls = 1L << 49,

/// <summary>
/// Allows user-installed apps to send public responses.
/// When disabled, users will still be allowed to use their apps but the responses will be ephemeral.
/// This only applies to apps not also installed to the server.
/// </summary>
[PermissionString("Use External Apps")]
UseExternalApps = 1L << 50
}

/// <summary>
Expand Down

0 comments on commit e6a059b

Please sign in to comment.