Started work on adding guilds

This commit is contained in:
ION606
2023-03-24 20:32:27 -04:00
parent 0e33185f16
commit e0ffe24eec
8 changed files with 321 additions and 3 deletions
+51
View File
@@ -0,0 +1,51 @@
class guildRole {
/** @type {Number} */
version;
/** @type {String} */
unicode_emoji;
/** @type {Object} */
tags;
/** @type {Number} */
position;
/** @type {String} */
permissions;
/** @type {String} */
name;
/** @type {Boolean} */
mentionable;
/** @type {Boolean} */
managed;
/** @type {String} */
id;
/** @type {String} */
icon;
/** @type {Boolean} */
hoist;
/** @type {Number} */
flags;
/** @type {Number} */
color;
constructor(o) {
for (const k in this) {
if (o[k]) {
this[k] = o[k];
}
}
}
}
module.exports = guildRole;