Skip to content

Commit ab26b04

Browse files
authored
Add files via upload
1 parent 8e450cd commit ab26b04

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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:`ButtonStyle`
41+
:class:`ButtonS
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

discord/raw_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
66
Copyright (c) 2015-present Rapptz
77
8+
Implementing of the Discord-Message-components made by mccoderpy (Discord-User mccuber04#2960)
9+
810
Permission is hereby granted, free of charge, to any person obtaining a
911
copy of this software and associated documentation files (the "Software"),
1012
to deal in the Software without restriction, including without limitation

discord/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def parse_interaction_create(self, data):
545545
raw.member: Member = Member(guild=raw.guild, data=raw._member, state=self)
546546
else:
547547
raw.channel = self._get_private_channel(raw.channel_id)
548-
raw.__setattr__('user', User(data=raw._member, state=self))
548+
raw.user = User(data=raw._user, state=self)
549549
if raw.message:
550550
self.dispatch('raw_interaction_create', raw)
551551
self.dispatch('interaction_create', raw)

0 commit comments

Comments
 (0)