MCPcopy
hub / github.com/Rapptz/discord.py / __init__

Method __init__

discord/flags.py:811–816  ·  view source on GitHub ↗
(self, value: int = 0, **kwargs: Unpack[_IntentsFlagsKwargs])

Source from the content-addressed store, hash-verified

809 __slots__ = ()
810
811 def __init__(self, value: int = 0, **kwargs: Unpack[_IntentsFlagsKwargs]) -> None:
812 self.value: int = value
813 for key, kwvalue in kwargs.items():
814 if key not in self.VALID_FLAGS:
815 raise TypeError(f'{key!r} is not a valid flag name.')
816 setattr(self, key, kwvalue)
817
818 @classmethod
819 def all(cls: Type[Intents]) -> Intents:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected