From 1eccf8aa05c297d9b8186baf17d55dabf47cfc8c Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sun, 6 Dec 2020 14:34:29 -0500 Subject: [PATCH] Update guild.ts --- src/handlers/guild.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handlers/guild.ts b/src/handlers/guild.ts index 86936b3af..91c07e5d8 100644 --- a/src/handlers/guild.ts +++ b/src/handlers/guild.ts @@ -10,6 +10,7 @@ import { ImageFormats, ImageSize } from "../types/cdn.ts"; import { ChannelCreatePayload, ChannelTypes } from "../types/channel.ts"; import { Errors } from "../types/errors.ts"; import { + AuditLogs, BannedUser, BanOptions, ChannelCreateOptions, @@ -439,6 +440,7 @@ export async function getAuditLogs( return RequestManager.get(endpoints.GUILD_AUDIT_LOGS(guildID), { ...options, + action_type: options.action_type ? AuditLogs[options.action_type] : undefined, limit: options.limit && options.limit >= 1 && options.limit <= 100 ? options.limit : 50,