mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 17:36:15 +00:00
Fix incorrect Select max option condition
This commit is contained in:
@ -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