diff --git a/discord/channel.py b/discord/channel.py index 81f7e3ab39..17c9048236 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -1084,7 +1084,7 @@ async def create_activity_invite(self, activity: Union[EmbeddedActivity, int] , if isinstance(activity, EmbeddedActivity): activity = activity.value - if not isinstance(activity, int): + elif not isinstance(activity, int): raise TypeError('Invalid type provided for the activity.') return await self.create_invite(