From 18498d6515e43eb764eb26c9ec3a35ce515c4257 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 4 Mar 2021 09:28:17 +0100 Subject: :art: getPermission() default opts --- src/util/Permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/Permissions.ts b/src/util/Permissions.ts index 96a1a27c..d7233536 100644 --- a/src/util/Permissions.ts +++ b/src/util/Permissions.ts @@ -147,7 +147,7 @@ export async function getPermission( user_id: bigint, guild_id: bigint, channel_id?: bigint, - cache?: { channel: ChannelDocument | null; member: MemberDocument | null } + cache?: { channel?: ChannelDocument | null; member?: MemberDocument | null } ) { var { channel, member } = cache || {}; -- cgit 1.5.1