summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-21 23:13:31 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-21 23:13:31 +0200
commit22c744398c043c64ad738cdaa6f503de365de395 (patch)
tree150d550167bb0717bb2295593e80d09c81703bd3 /util/src
parent:sparkles: generate openapi documentation (diff)
downloadserver-22c744398c043c64ad738cdaa6f503de365de395.tar.xz
:sparkles: unit tests expect event
Diffstat (limited to 'util/src')
-rw-r--r--util/src/util/Event.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/src/util/Event.ts b/util/src/util/Event.ts

index 765e5fc7..bf9547b1 100644 --- a/util/src/util/Event.ts +++ b/util/src/util/Event.ts
@@ -2,7 +2,7 @@ import { Channel } from "amqplib"; import { RabbitMQ } from "./RabbitMQ"; import EventEmitter from "events"; import { EVENT, Event } from "../interfaces"; -const events = new EventEmitter(); +export const events = new EventEmitter(); export async function emitEvent(payload: Omit<Event, "created_at">) { const id = (payload.channel_id || payload.user_id || payload.guild_id) as string;