Skip to content

Commit 8a7b57b

Browse files
authored
Merge pull request #551 from MasterBaiter123/patch-1
Change if isinstance logic to elif
2 parents 45c52de + 5e2a9b3 commit 8a7b57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ async def create_activity_invite(self, activity: Union[EmbeddedActivity, int] ,
10841084
if isinstance(activity, EmbeddedActivity):
10851085
activity = activity.value
10861086

1087-
if not isinstance(activity, int):
1087+
elif not isinstance(activity, int):
10881088
raise TypeError('Invalid type provided for the activity.')
10891089

10901090
return await self.create_invite(

0 commit comments

Comments
 (0)