diff --git a/discordsdk/lobby.py b/discordsdk/lobby.py index 4ab0573..fd17528 100644 --- a/discordsdk/lobby.py +++ b/discordsdk/lobby.py @@ -387,7 +387,7 @@ def get_lobby_activity_secret(self, lobby_id: int) -> str: lobby_secret = sdk.DiscordLobbySecret() result = self._internal.get_lobby_activity_secret(self._internal, lobby_id, lobby_secret) - if result != result.ok: + if result != Result.ok: raise get_exception(result) return lobby_secret.value.decode("utf8")