Class: GifEndpoint ​
Defined in: endpoints/gif.ts:21
GIF search, through the instance.
Only available when the instance reports gifs.enabled; otherwise every call is refused with gifs_disabled.
Constructors ​
Constructor ​
ts
new GifEndpoint(client): GifEndpoint;Defined in: endpoints/gif.ts:22
Parameters ​
| Parameter | Type |
|---|---|
client | RESTClient |
Returns ​
GifEndpoint
Methods ​
search() ​
ts
search(query, options?): Promise<IGifSearchResponse>;Defined in: endpoints/gif.ts:24
Parameters ​
| Parameter | Type |
|---|---|
query | string |
options? | IGifSearchOptions |
Returns ​
Promise<IGifSearchResponse>
trending() ​
ts
trending(options?): Promise<IGifSearchResponse>;Defined in: endpoints/gif.ts:35
What the picker shows before anything has been typed. gifgooder has no trending, so it lists its newest instead.
Parameters ​
| Parameter | Type |
|---|---|
options? | IGifSearchOptions |
Returns ​
Promise<IGifSearchResponse>