twitch-chat.js
Version:
A simple twitch API wrapper
15 lines (13 loc) • 321 B
JavaScript
const { makeError } = require('../../util/_.js');
const error = require('../../http/error.js')
module.exports = class Base {
constructor(twitch) {
Object.defineProperty(this, 'twitch', { value: twitch });
}
_data(data) {
return data
}
makeError(req, ...args) {
throw new error(req, ...args)
}
}