From c3342302ec41311bc11492898a757a743a5135da Mon Sep 17 00:00:00 2001 From: Stanislav Iliev Date: Thu, 17 Nov 2016 23:46:27 +0200 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index aa374821..5c06c129 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - [getMatches](#getmatches) - [getLatestResults](#getlatestresults) - [getStreams](#getstreams) + - [getActiveThreads](#getactivethreads) ## Installation @@ -155,3 +156,27 @@ realLink | string | Only if the `loadLinks` flag is enabled viewers | int *** + +#### getActiveThreads + +Parses the latest threads on the front page of HLTV + +Option | Type | Default Value | Description | +:---:|:---:|:---:|:---:| +- | - | - | - | + +```javascript +hltv.getActiveThreads().then((res) => { + ... +}) +``` + +Results in an array of objects with the following schema: + +Property | Type | Note +---|---|---| +title | string +link | string +replies | int + +***