How to use the detritus-client-rest.Utils function in detritus-client-rest

To help you get started, we’ve selected a few detritus-client-rest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github detritusjs / client / lib / utils / constants.js View on Github external
const Constants = require('detritus-utils').Constants;

const Gateway = require('detritus-websocket').Utils.Constants;
const Rest = require('detritus-client-rest').Utils.Constants;

const VERSION = '0.0.5';
module.exports = Object.assign({}, Constants, Gateway, Rest, {
	VERSION,
	ApiVersions: Object.assign({}, Gateway.ApiVersions, Rest.ApiVersions),
	Versions: {
		CLIENT: VERSION,
		GATEWAY: Gateway.VERSION,
		REST: Rest.VERSION
	},
	Detritus: {
		MessageCacheTypes: ['global', 'guild', 'channel'],
		Command: {
			Errors: {
				GENERAL: 0,
				RATELIMIT: 1,

detritus-client-rest

A minimalistic TypeScript library to interact with all, or most, of Discord's rest endpoints

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis