aboutsummaryrefslogtreecommitdiff
path: root/discord/enums.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-04-12 20:18:28 -0400
committerRapptz <[email protected]>2017-04-12 20:18:28 -0400
commit728fae928563057785be34324b13a5f3ffc9b83e (patch)
treed4a43cca62bf7b4d978ff55aa2d84da830312d5b /discord/enums.py
parentUse create_future wrapper for initially created Future. (diff)
downloaddiscord.py-728fae928563057785be34324b13a5f3ffc9b83e.tar.xz
discord.py-728fae928563057785be34324b13a5f3ffc9b83e.zip
Add Guild.explicit_content_filter.
Diffstat (limited to 'discord/enums.py')
-rw-r--r--discord/enums.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/enums.py b/discord/enums.py
index 366aca58..e91d592b 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -74,6 +74,14 @@ class VerificationLevel(Enum):
def __str__(self):
return self.name
+class ContentFilter(Enum):
+ disabled = 0
+ no_role = 1
+ all_members = 2
+
+ def __str__(self):
+ return self.name
+
class Status(Enum):
online = 'online'
offline = 'offline'