From 2de90fbecfe25c86e4d4c20baece85ad1a602e1e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 21 Dec 2019 07:39:33 -0500 Subject: Add User.system and MessageFlags.urgent --- discord/flags.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'discord/flags.py') diff --git a/discord/flags.py b/discord/flags.py index dc89c46d..864ed915 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -215,3 +215,11 @@ class MessageFlags(BaseFlags): def source_message_deleted(self): """:class:`bool`: Returns ``True`` if the source message for this crosspost has been deleted.""" return 8 + + @flag_value + def urgent(self): + """:class:`bool`: Returns ``True`` if the source message is an urgent message. + + An urgent message is one sent by Discord Trust and Safety. + """ + return 16 -- cgit v1.2.3