wrapper functions

This commit is contained in:
Erik 2022-05-01 02:33:47 +03:00
parent b690047c6b
commit 6fa63d4445
Signed by untrusted user: 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 */
fetchAuditLogs(...opts) {
return this.guild.fetchAuditLogs(...opts);
}
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;
}
timeout(...opts) {
return this.member.timeout(...opts);
}
get id() {
return this.member.id;
}
@ -75,6 +79,14 @@ class MemberWrapper {
get lastMessage() {
return this.member.lastMessage;
}
get communicationDisabledUntil() {
return this.member.communicationDisabledUntil;
}
get communicationDisabledUntilTimestamp() {
return this.member.communicationDisabledUntilTimestamp;
}
}