From b4ea0595ed6218a3165aa8435a36f696e508c07a Mon Sep 17 00:00:00 2001 From: Abitofevrything <54505189+abitofevrything@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:22:56 -0700 Subject: [PATCH] Add allPermissions getter (#522) --- lib/src/models/permissions.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/models/permissions.dart b/lib/src/models/permissions.dart index 6685ce1d6..b844312f7 100644 --- a/lib/src/models/permissions.dart +++ b/lib/src/models/permissions.dart @@ -134,6 +134,9 @@ class Permissions extends Flags { /// Allows for using soundboard in a voice channel. static const useSoundboard = Flag.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);