Skip to content

Commit 8e450cd

Browse files
authored
Update components.py
1 parent 36d2e72 commit 8e450cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/components.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
class ButtonStyle:
4040
"""
41-
:class:`ButtonS
41+
:class:`ButtonStyle`
4242
Represents the Style for an :class:`discord.Button`
4343
4444
.. note ::
@@ -240,7 +240,7 @@ class DropdownMenue:
240240

241241
def __init__(self, **kwargs):
242242
self.__options: list = kwargs.get('options', [])
243-
if not [type(obj) == dict for obj in self._options]:
243+
if not [type(obj) == dict for obj in self.__options]:
244244
raise InvalidData("DropdownMenue-Options have to bee an Dict like `{'label': 'that what should show up in Discord', 'value': 'that what the Discord-API sends to your Application if the option is chosen'}`, or usually an :function:`discord.components.create_option`.")
245245
self.__custom_id: str = kwargs.get('custom_id', 'no_custom_id_set')
246246

0 commit comments

Comments
 (0)