aboutsummaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
authorNadir Chowdhury <[email protected]>2021-06-08 04:20:04 +0100
committerGitHub <[email protected]>2021-06-07 23:20:04 -0400
commita7ae2eb1bb8ac9b995a236a31aba11118d08406a (patch)
treedb3c2e5f402c5067575c29221904d8eb67927e15 /docs/api.rst
parentAdd Embed.remove_footer (diff)
downloaddiscord.py-a7ae2eb1bb8ac9b995a236a31aba11118d08406a.tar.xz
discord.py-a7ae2eb1bb8ac9b995a236a31aba11118d08406a.zip
Add Guild.nsfw_level
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
index d06f1565..68b055f4 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -2197,6 +2197,28 @@ of :class:`enum.Enum`.
Alias for :attr:`.closed`
+.. class:: NSFWLevel
+
+ Represents the NSFW level of a guild.
+
+ .. versionadded:: 2.0
+
+ .. attribute:: default
+
+ The guild has not been categorised yet.
+
+ .. attribute:: explicit
+
+ The guild contains NSFW content.
+
+ .. attribute:: safe
+
+ The guild does not contain any NSFW content.
+
+ .. attribute:: age_restricted
+
+ The guild may contain NSFW content.
+
Async Iterator
----------------