.delete(route, options?)
route: string, options?: RequestOptions → Promise<T>
await client.rest.delete(route);Class
HTTP client for the Fluxer API.
Extends EventEmitter
new REST(options: RESTOptions)RESTOptionsroute: string, options?: RequestOptions → Promise<T>
await client.rest.delete(route);route: string, options?: Pick<RequestOptions, 'auth' | 'signal' | 'headers'> → Promise<T>
await client.rest.get(route);route: string, options?: RequestOptions → Promise<T>
await client.rest.patch(route);route: string, options?: RequestOptions → Promise<T>
await client.rest.post(route);route: string, options?: RequestOptions → Promise<T>
await client.rest.put(route);token: string | null → this
client.rest.setToken(token);