UNPKG

replapi-it

Version:
15 lines (13 loc) 307 B
const Collection = require('./collection'); class Template { #client; constructor(client) { this.#client = client; } async update(data) { let {...properties} = data; Object.entries(properties).forEach(([property, value]) => this[property] = value); return this; } } module.exports = Template;