diff options
| author | Rapptz <[email protected]> | 2021-04-14 05:05:47 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 07:23:40 -0400 |
| commit | 68c7c538f5a4e068664c3ee2f38f7343e229af1a (patch) | |
| tree | 08a694d1f32e27283e08302ab1388d8579a1bb0c /discord/flags.py | |
| parent | [types] Add support thread API typings (diff) | |
| download | discord.py-68c7c538f5a4e068664c3ee2f38f7343e229af1a.tar.xz discord.py-68c7c538f5a4e068664c3ee2f38f7343e229af1a.zip | |
First pass at preliminary thread support
This is missing a lot of functionality right now, such as two gateway
events and all the HTTP CRUD endpoints.
Diffstat (limited to 'discord/flags.py')
| -rw-r--r-- | discord/flags.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/discord/flags.py b/discord/flags.py index d6a892c8..0ca6e34d 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -279,6 +279,13 @@ class MessageFlags(BaseFlags): """ return 16 + @flag_value + def has_thread(self): + """:class:`bool`: Returns ``True`` if the source message is associated with a thread. + + .. versionadded:: 2.0 + """ + return 32 @fill_with_flags() class PublicUserFlags(BaseFlags): |