From dce40279280ddbc3b961ab83a9cc6f0fbec7e05c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Mon, 8 Mar 2021 18:41:31 +0100 Subject: :sparkles: changed number to date type --- dist/util/Permissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/util/Permissions.js') diff --git a/dist/util/Permissions.js b/dist/util/Permissions.js index 99111331..dfa2ea74 100644 --- a/dist/util/Permissions.js +++ b/dist/util/Permissions.js @@ -92,7 +92,7 @@ async function getPermission(user_id, guild_id, channel_id, cache) { if (!guild) throw new Error("Guild not found"); if (guild.owner_id === user_id) - return new Permissions("ADMINISTRATOR"); + return new Permissions(Permissions.FLAGS.ADMINISTRATOR); member = await Member_1.MemberModel.findOne({ guild_id, id: user_id }, "roles").exec(); if (!member) throw new Error("Member not found"); -- cgit 1.5.1