UNPKG

seyfert

Version:

The most advanced framework for discord bots

23 lines (22 loc) 755 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClientUser = void 0; const client_1 = require("../client"); const User_1 = require("./User"); class ClientUser extends User_1.User { application; bot = true; constructor(client, data, application) { super(client, data); this.application = application; } async fetch() { const data = await this.api.users('@me').get(); return client_1.Transformers.ClientUser(this.client, data, this.application); } async edit(body) { const data = await this.api.users('@me').patch({ body }); return client_1.Transformers.ClientUser(this.client, data, this.application); } } exports.ClientUser = ClientUser;