add doc
This commit is contained in:
parent
ecd898e62c
commit
e3bce1ba58
@ -404,6 +404,8 @@ class Intents(BaseFlags):
|
||||
|
||||
@classmethod
|
||||
def from_list(cls, intents_list):
|
||||
"""A factory method that creates a :class:`Intents` with everything enabled
|
||||
that has been passed in the list."""
|
||||
for item in intents_list:
|
||||
if item not in cls.VALID_FLAGS.keys():
|
||||
intents_list.remove(item)
|
||||
|
Loading…
x
Reference in New Issue
Block a user