🐛 fix Event Emitter

This commit is contained in:
Flam3rboy
2021-02-22 08:21:32 +01:00
parent 762b66d50d
commit 5a505f331a
5 changed files with 22 additions and 17 deletions
+14
View File
@@ -0,0 +1,14 @@
import { Router } from "express";
import { getPermission, MemberModel, db } from "fosscord-server-util";
import { Types } from "mongoose";
const router: Router = Router();
router.get("/", async (req, res) => {
// @ts-ignore
const perm = await getPermission(813185668657184768n, 813189959920910336n);
console.log(perm);
if (perm.has("ADD_REACTIONS")) console.log("add");
res.send("OK");
});
export default router;