This commit is contained in:
iDutchy 2020-10-04 01:58:06 +00:00
parent ecd898e62c
commit e3bce1ba58

View File

@ -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)