wrapper functions

This commit is contained in:
Erik 2022-05-01 02:33:47 +03:00
parent b690047c6b
commit 6fa63d4445
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 16 additions and 0 deletions

View File

@ -212,6 +212,10 @@ class GuildWrapper {
/* Wrapper Functions */ /* Wrapper Functions */
fetchAuditLogs(...opts) {
return this.guild.fetchAuditLogs(...opts);
}
fetch() { fetch() {
return this.guild.fetch(); return this.guild.fetch();
} }

View File

@ -38,6 +38,10 @@ class MemberWrapper {
return (await this.userWrapper()).developer || this.permissions.missing(['ADMINISTRATOR', 'MANAGE_GUILD']).length === 2; return (await this.userWrapper()).developer || this.permissions.missing(['ADMINISTRATOR', 'MANAGE_GUILD']).length === 2;
} }
timeout(...opts) {
return this.member.timeout(...opts);
}
get id() { get id() {
return this.member.id; return this.member.id;
} }
@ -76,6 +80,14 @@ class MemberWrapper {
return this.member.lastMessage; return this.member.lastMessage;
} }
get communicationDisabledUntil() {
return this.member.communicationDisabledUntil;
}
get communicationDisabledUntilTimestamp() {
return this.member.communicationDisabledUntilTimestamp;
}
} }
module.exports = MemberWrapper; module.exports = MemberWrapper;