mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
Added invite functionality and changed the EJS
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
class member {
|
||||
import axios from 'axios';
|
||||
import {guildRole, guildMemberRoleManager} from "./guildRoles.js";
|
||||
// https://discord.com/developers/docs/resources/guild#modify-guild-member
|
||||
|
||||
|
||||
export default class member {
|
||||
/** @type {Object} */
|
||||
user;
|
||||
|
||||
/** @type {Object[]} */
|
||||
/** @type {guildMemberRoleManager} */
|
||||
roles;
|
||||
|
||||
/** @type {String} */
|
||||
@@ -32,14 +37,12 @@ class member {
|
||||
/** @type {String} */
|
||||
avatar;
|
||||
|
||||
constructor(o) {
|
||||
constructor(o, roles) {
|
||||
this.roles = roles;
|
||||
for (const k in this) {
|
||||
if (o[k]) {
|
||||
if (o[k] && k != 'roles') {
|
||||
this[k] = o[k];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module.exports = member;
|
||||
}
|
||||
Reference in New Issue
Block a user