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

Method __init__

discord/flags.py:166–171  ·  view source on GitHub ↗
(self, **kwargs: bool)

Source from the content-addressed store, hash-verified

164 __slots__ = ('value',)
165
166 def __init__(self, **kwargs: bool):
167 self.value = self.DEFAULT_VALUE
168 for key, value in kwargs.items():
169 if key not in self.VALID_FLAGS:
170 raise TypeError(f'{key!r} is not a valid flag name.')
171 setattr(self, key, value)
172
173 @classmethod
174 def _from_value(cls, value: int) -> Self:

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected