From 2593c17ecc84c29a0c9af2f6beed6878916aeb37 Mon Sep 17 00:00:00 2001 From: dolfies Date: Wed, 15 Jan 2025 03:08:37 -0500 Subject: [PATCH] Add missing invite flags --- discord/flags.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discord/flags.py b/discord/flags.py index 1ec9e5574..9a26f1265 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -2738,6 +2738,16 @@ class InviteFlags(BaseFlags): """:class:`bool`: Returns ``True`` if the invite is a guest invite. Guest invites grant temporary membership for the purposes of joining a voice channel.""" return 1 << 0 + @flag_value + def viewed(self): + """:class:`bool`: Returns ``True`` if the invite has been viewed.""" + return 1 << 1 + + @flag_value + def enhanced(self): + """:class:`bool`: Returns ``True`` if the invite is enhanced.""" + return 1 << 2 + @fill_with_flags() class AttachmentFlags(BaseFlags):