diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-18 21:10:03 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-18 21:10:03 +0200 |
commit | 4bae3909e3827e1e476fc029254865972c20df60 (patch) | |
tree | 491f6f6f9e223051656f835f397be4b0dbb6b6a8 /gateway/src/opcodes/LazyRequest.ts | |
parent | :zap: message performance (diff) | |
download | server-4bae3909e3827e1e476fc029254865972c20df60.tar.xz |
:bug: fix types + prod env
Diffstat (limited to '')
-rw-r--r-- | gateway/src/opcodes/LazyRequest.ts | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts index c304dfe7..2156070f 100644 --- a/gateway/src/opcodes/LazyRequest.ts +++ b/gateway/src/opcodes/LazyRequest.ts @@ -1,11 +1,4 @@ -import { - EVENTEnum, - EventOpts, - getPermission, - listenEvent, - Member, - Role, -} from "@fosscord/util"; +import { getPermission, listenEvent, Member, Role } from "@fosscord/util"; import { LazyRequest } from "../schema/LazyRequest"; import { Send } from "../util/Send"; import { OPCODES } from "../util/Constants"; @@ -47,7 +40,7 @@ async function getMembers(guild_id: string, range: [number, number]) { const member_roles = members .map((m) => m.roles) .flat() - .unique((r) => r.id); + .unique((r: Role) => r.id); for (const role of member_roles) { // @ts-ignore |