From 3d0d36b3d938eda92880cd3d5caf793f359f03d0 Mon Sep 17 00:00:00 2001 From: Depreca1ed <70801324+Depreca1ed@users.noreply.github.com> Date: Tue, 18 Mar 2025 00:33:26 +0530 Subject: [PATCH] Add discord.Permissions.apps() Signed-off-by: Depreca1ed <70801324+Depreca1ed@users.noreply.github.com> --- discord/permissions.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discord/permissions.py b/discord/permissions.py index b553e2578..c234ad5f3 100644 --- a/discord/permissions.py +++ b/discord/permissions.py @@ -363,6 +363,16 @@ class Permissions(BaseFlags): """ return cls(0b0000_0000_0000_0000_0000_0001_0000_0100_0111_0000_0000_0000_0010_0000_0011_1110) + @classmethod + def apps(cls) -> Self: + """A factory method that creates a :class:`Permissions` with all + "Apps" permissions from the official Discord UI set to ``True``. + + + .. versionadded:: 2.6 + """ + return cls(0b0000_0000_0000_0100_0000_0000_1000_0000_1000_0000_0000_0000_0000_0000_0000_0000) + @classmethod def events(cls) -> Self: """A factory method that creates a :class:`Permissions` with all