From 6fa63d4445920a3d0aafafea6cda2d42a22425d7 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sun, 1 May 2022 02:33:47 +0300 Subject: [PATCH] wrapper functions --- src/structure/client/wrappers/GuildWrapper.js | 4 ++++ src/structure/client/wrappers/MemberWrapper.js | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/structure/client/wrappers/GuildWrapper.js b/src/structure/client/wrappers/GuildWrapper.js index aa643be..bf545a6 100644 --- a/src/structure/client/wrappers/GuildWrapper.js +++ b/src/structure/client/wrappers/GuildWrapper.js @@ -212,6 +212,10 @@ class GuildWrapper { /* Wrapper Functions */ + fetchAuditLogs(...opts) { + return this.guild.fetchAuditLogs(...opts); + } + fetch() { return this.guild.fetch(); } diff --git a/src/structure/client/wrappers/MemberWrapper.js b/src/structure/client/wrappers/MemberWrapper.js index 9ff3e2a..7babe77 100644 --- a/src/structure/client/wrappers/MemberWrapper.js +++ b/src/structure/client/wrappers/MemberWrapper.js @@ -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; + } }