Skip to content

Commit

Permalink
Add allPermissions getter (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything authored Aug 22, 2023
1 parent 4ad3c76 commit b4ea059
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/models/permissions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ class Permissions extends Flags<Permissions> {
/// Allows for using soundboard in a voice channel.
static const useSoundboard = Flag<Permissions>.fromOffset(42);

/// A [Permissions] with all permissions enabled.
static const allPermissions = Permissions(1099511627775);

/// Whether this set of permissions has the [createInstantInvite] permission.
bool get canCreateInstantInvite => has(createInstantInvite);

Expand Down

0 comments on commit b4ea059

Please sign in to comment.