snowtransfer
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "snowtransfer", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Minimalistic Rest client for the Discord Api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ let Raven = require('raven'); | ||
let BotMethods = require('./methods/Bots'); | ||
const Endpoints = require('./Endpoints'); | ||
/** | ||
@@ -35,2 +35,3 @@ * @typedef SnowTransfer | ||
* @param {Object} [options.sentryOptions] - Options to use for the sentry client, check the [sentry docs](https://docs.sentry.io/clients/node/config/) for more infos | ||
* @param {String} [options.baseHost=https://discordapp.com] - Base host to use for the requests, may be replaced when using a local hosted proxy | ||
* @return {SnowTransfer} - created instance | ||
@@ -55,3 +56,7 @@ * @constructor | ||
this.ratelimiter = new Ratelimiter(); | ||
this.requestHandler = new RequestHandler(this.ratelimiter, {token: this.token, raven: this.raven}); | ||
this.requestHandler = new RequestHandler(this.ratelimiter, { | ||
token: this.token, | ||
raven: this.raven, | ||
baseHost: this.options.baseHost || Endpoints.BASE_HOST | ||
}); | ||
this.channel = new ChannelMethods(this.requestHandler); | ||
@@ -58,0 +63,0 @@ this.user = new UserMethods(this.requestHandler); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
182819
2185