Skip to content
This repository was archived by the owner on Aug 28, 2019. It is now read-only.

Commit 53a1118

Browse files
committed
Fix ArrayFlags._from_value not having an initial value
1 parent b806ce3 commit 53a1118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/flags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ class ArrayFlags(BaseFlags):
14681468
@classmethod
14691469
def _from_value(cls: Type[Self], value: List[int]) -> Self:
14701470
self = cls.__new__(cls)
1471-
self.value = reduce(lambda a, b: a | (1 << b - 1), value)
1471+
self.value = reduce(lambda a, b: a | (1 << b - 1), value, 0)
14721472
return self
14731473

14741474
def to_array(self) -> List[int]:

0 commit comments

Comments
 (0)