summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-04 09:28:17 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-04 09:28:17 +0100
commit18498d6515e43eb764eb26c9ec3a35ce515c4257 (patch)
tree43e494271bcd8618ed0b4b1237545cdd38f8f5fc /src/util
parent:art: getPermission cache (diff)
downloadserver-18498d6515e43eb764eb26c9ec3a35ce515c4257.tar.xz
:art: getPermission() default opts
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Permissions.ts2
1 files changed, 1 insertions, 1 deletions
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 || {};