From 6f83b1f6414e8241f7b9c2a4b549878afc5e7b5b Mon Sep 17 00:00:00 2001 From: Faster Speeding Date: Wed, 8 Jan 2020 12:17:24 +0000 Subject: [PATCH] Add new message flags. --- disco/types/message.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/disco/types/message.py b/disco/types/message.py index cb9ef92..3ad5073 100644 --- a/disco/types/message.py +++ b/disco/types/message.py @@ -378,6 +378,8 @@ class MessageFlags(BitsetMap): CROSSPOSTED = 1 << 0 IS_CROSSPOST = 1 << 1 SUPPRESS_EMBEDS = 1 << 2 + SOURCE_MESSAGE_DELETED = 1 << 3 + URGENT = 1 << 4 class MessageFlagValue(BitsetValue): @@ -543,11 +545,16 @@ class Message(SlottedModel): """ Toggle this message's embed suppression. - Args - ---- + Parameters + ---------- `state` Whether this message's embeds should be suppressed, will just flip the state if not provided. + + Returns + ------- + `bool` + The new state of the message's embed suppression. """ flags = int(self.flags or 0) if state is None: