From 61e5d3fcb985b4617811cb6e39729c6b547bc4d9 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sat, 22 May 2021 00:37:46 +0000 Subject: [PATCH] use partial audit logs --- src/helpers/guilds/get_audit_logs.ts | 2 +- src/structures/guild.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/guilds/get_audit_logs.ts b/src/helpers/guilds/get_audit_logs.ts index f0260db57..73f9cbfc5 100644 --- a/src/helpers/guilds/get_audit_logs.ts +++ b/src/helpers/guilds/get_audit_logs.ts @@ -6,7 +6,7 @@ import { requireBotGuildPermissions } from "../../util/permissions.ts"; import { snakelize } from "../../util/utils.ts"; /** Returns the audit logs for the guild. Requires VIEW AUDIT LOGS permission */ -export async function getAuditLogs(guildId: bigint, options: GetGuildAuditLog) { +export async function getAuditLogs(guildId: bigint, options: Partial) { await requireBotGuildPermissions(guildId, ["VIEW_AUDIT_LOG"]); return await rest.runMethod( diff --git a/src/structures/guild.ts b/src/structures/guild.ts index 210ceaff6..36d03714d 100644 --- a/src/structures/guild.ts +++ b/src/structures/guild.ts @@ -369,7 +369,7 @@ export interface DiscordenoGuild /** Edit the server. Requires the MANAGE_GUILD permission. */ edit(options: ModifyGuild): ReturnType; /** Returns the audit logs for the guild. Requires VIEW AUDIT LOGS permission */ - auditLogs(options: GetGuildAuditLog): ReturnType; + auditLogs(options: Partial): ReturnType; /** Returns a ban object for the given user or a 404 not found if the ban cannot be found. Requires the BAN_MEMBERS permission. */ getBan(memberId: bigint): ReturnType; /** Returns a list of ban objects for the users banned from this guild. Requires the BAN_MEMBERS permission. */