Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 265ac9b

Browse files
author
kuso-senpai
committed
fixed default issue in Selectoption
1 parent 41d3bc6 commit 265ac9b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ You can find more examples [here](https://github.com/KusoRedsto/discord-message-
104104

105105
# Changelog
106106

107+
- <details>
108+
<summary>2.0.2</summary>
109+
110+
## **Fixed**
111+
112+
- SelectOption
113+
> Select option threw an exception if it was smaller than 1 or higher than 100
114+
115+
</details>
116+
107117
- <details>
108118
<summary>2.0.0</summary>
109119

discord_message_components/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
from .override import Overriden_Bot, override_client
66

77

8-
__version__ = "2.0.1"
8+
__version__ = "2.0.2"

discord_message_components/components.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ def __init__(self, custom_id, options, min_values = 1, max_values = 1, placehold
243243
self._json["placeholder"] = placeholder
244244

245245
if default is not MISSING:
246-
if default < 1 or default > 100:
247-
raise InvalidArgument("default character length needs to be between 1 and 100")
248246
self.set_default_option(default)
249247

250248
def __str__(self) -> str:

0 commit comments

Comments
 (0)