From 41a193dff0911da78fe080f610478ecabeb6184a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 9 Oct 2021 01:45:02 +0200 Subject: :art: fix imports with new build script --- api/src/routes/channels/#channel_id/messages/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/src/routes/channels') diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index d3321fae..1f856b80 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -22,7 +22,7 @@ const router: Router = Router(); export default router; -export function isTextChannel(type: ChannelType): boolean { +function isTextChannel(type: ChannelType): boolean { switch (type) { case ChannelType.GUILD_STORE: case ChannelType.GUILD_VOICE: @@ -39,6 +39,7 @@ export function isTextChannel(type: ChannelType): boolean { return true; } } +module.exports.isTextChannel = isTextChannel; export interface MessageCreateSchema { content?: string; -- cgit 1.5.1