Skip to content

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 ​

ParameterType
clientRESTClient

Returns ​

GifEndpoint

Methods ​

ts
search(query, options?): Promise<IGifSearchResponse>;

Defined in: endpoints/gif.ts:24

Parameters ​

ParameterType
querystring
options?IGifSearchOptions

Returns ​

Promise<IGifSearchResponse>


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 ​

ParameterType
options?IGifSearchOptions

Returns ​

Promise<IGifSearchResponse>

Released under the GNU Affero General Public License v3.0.