discord-user-bots
Version:
A library that allows you to use the full potential of Discords API to create and operate powerful user bots
23 lines (20 loc) • 359 B
JavaScript
/**
*
* ## OVERVIEW
*
* Text encoding/decoding class.
*
*/
class Coder {
constructor() {
this.encoder = new TextEncoder();
this.decoder = new TextDecoder();
}
encode(data) {
return this.encoder.encode(data);
}
decode(data) {
return this.decoder.decode(data);
}
}
module.exports = new Coder();