Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f9d8d67

Browse files
authoredJun 16, 2021
Add files via upload
1 parent 297618f commit f9d8d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎discord/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ async def edit(self, **fields):
11151115
if components is not None:
11161116
_components = []
11171117
if components is not None:
1118-
for component in ([components] if not type(components) == list else components):
1118+
for component in ([components] if not isinstance(components, list) else components):
11191119
if isinstance(component, Button):
11201120
_components.extend(ActionRow(component).sendable())
11211121
elif isinstance(component, DropdownMenue):
@@ -1649,7 +1649,7 @@ async def edit(self, **fields):
16491649
else:
16501650
_components = []
16511651
if components is not None:
1652-
for component in ([components] if not type(components) == list else components):
1652+
for component in ([components] if not isinstance(components, list) else components):
16531653
if isinstance(component, Button):
16541654
_components.extend(ActionRow(component).sendable())
16551655
elif isinstance(component, DropdownMenue):

0 commit comments

Comments
 (0)
Please sign in to comment.