mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix ArrayFlags._from_value not having an initial value
This commit is contained in:
parent
b806ce332e
commit
53a111872e
@ -1468,7 +1468,7 @@ class ArrayFlags(BaseFlags):
|
||||
@classmethod
|
||||
def _from_value(cls: Type[Self], value: List[int]) -> Self:
|
||||
self = cls.__new__(cls)
|
||||
self.value = reduce(lambda a, b: a | (1 << b - 1), value)
|
||||
self.value = reduce(lambda a, b: a | (1 << b - 1), value, 0)
|
||||
return self
|
||||
|
||||
def to_array(self) -> List[int]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user