aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriDutchy <[email protected]>2020-09-20 06:05:18 +0200
committerGitHub <[email protected]>2020-09-20 00:05:18 -0400
commitcc26499237e579d19b43008d898a07324aef0854 (patch)
tree5af7b993eec1e57b51ccdc0312ca9f0b45f7e233
parentissue/PR templates: use h2 instead of h3 (diff)
downloaddiscord.py-cc26499237e579d19b43008d898a07324aef0854.tar.xz
discord.py-cc26499237e579d19b43008d898a07324aef0854.zip
Add competing activity type
-rw-r--r--discord/enums.py1
-rw-r--r--docs/api.rst5
2 files changed, 6 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index c171e1e3..7fa39289 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -417,6 +417,7 @@ class ActivityType(Enum):
listening = 2
watching = 3
custom = 4
+ competing = 5
def __int__(self):
return self.value
diff --git a/docs/api.rst b/docs/api.rst
index c97197cd..55f20aa8 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -984,6 +984,11 @@ of :class:`enum.Enum`.
.. attribute:: custom
A custom activity type.
+ .. attribute:: competing
+
+ A competing activity type.
+
+ .. versionadded:: 1.5
.. class:: HypeSquadHouse