wrapper functions
This commit is contained in:
parent
b690047c6b
commit
6fa63d4445
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
@ -75,6 +79,14 @@ class MemberWrapper {
|
|||||||
get lastMessage() {
|
get lastMessage() {
|
||||||
return this.member.lastMessage;
|
return this.member.lastMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get communicationDisabledUntil() {
|
||||||
|
return this.member.communicationDisabledUntil;
|
||||||
|
}
|
||||||
|
|
||||||
|
get communicationDisabledUntilTimestamp() {
|
||||||
|
return this.member.communicationDisabledUntilTimestamp;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user