Docs + search validate updated

This commit is contained in:
killer069
2021-10-09 18:59:16 +05:30
parent 6698a87983
commit f6a91254aa
6 changed files with 37 additions and 38 deletions

View File

@@ -18,7 +18,7 @@ console.log(data.type) // Console logs the type of data that you got.
_This checks that given url is soundcloud url or not._
**Returns :** `track` | `playlist` | `false`
**Returns :** `track` | `playlist` | `search` | `false`
```js
let check = await so_validate(url)
@@ -26,6 +26,8 @@ let check = await so_validate(url)
if(!check) // Invalid SoundCloud URL
if(check === 'track') // SoundCloud Track URL
if(check === "search") // Given term is not a SoundCloud URL. Search this somewhere.
```
## Classes [ Returned by `soundcloud(url)` function ]