Browse Source

fix: _ViewWeights.v2_weights always returning False

pull/10166/head
DA-344 5 months ago
parent
commit
869b68f68b
  1. 2
      discord/ui/view.py

2
discord/ui/view.py

@ -176,7 +176,7 @@ class _ViewWeights:
self.weights = [0, 0, 0, 0, 0]
def v2_weights(self) -> bool:
return sum(1 if w > 0 else 0 for w in self.weights) > 5
return len(self.weights) > 5
class _ViewCallback:

Loading…
Cancel
Save