mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-07 17:39:03 +00:00
Fix incorrect Select max option condition
This commit is contained in:
1 parent
6643784d33
commit
97ca618570
2 files changed
+40
-1
No files matched your search
@@ -499,7 +499,7 @@ class Select(BaseSelect[V]):
|
||||
The number of options exceeds 25.
|
||||
"""
|
||||
|
||||
if len(self._underlying.options) > 25:
|
||||
if len(self._underlying.options) >= 25:
|
||||
raise ValueError('maximum number of options already provided')
|
||||
|
||||
self._underlying.options.append(option)
|
||||
|
||||
Reference in new issue
Block a user