mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
import { BotWithCache } from "../../deps.ts";
|
|
import { requireBotGuildPermissions } from "../permissions.ts";
|
|
|
|
export default function getAuditLogs(bot: BotWithCache) {
|
|
const getAuditLogsOld = bot.helpers.getAuditLogs;
|
|
|
|
bot.helpers.getAuditLogs = function (guildId, options) {
|
|
requireBotGuildPermissions(bot, guildId, ["VIEW_AUDIT_LOG"]);
|
|
|
|
return getAuditLogsOld(guildId, options);
|
|
};
|
|
}
|