Files
custom_discordjs/structures/messages/User.js
T

33 lines
523 B
JavaScript
Raw Normal View History

2023-04-02 09:49:47 -04:00
export default class user {
/** @type {String} */
id;
/** @type {String} */
username;
/** @type {String} */
global_name;
/** @type {String} */
display_name;
/** @type {String} */
avatar;
/** @type {String} */
avatar_decoration;
/** @type {String} */
discriminator;
/** @type {Number} */
public_flags;
constructor(obj) {
for (const k in this) {
if (obj[k]) {
this[k] = obj[k];
}
}
}
}