summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:45:02 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:45:02 +0200
commit9fa4c607fc5056dc2b2cc0be9b425872ec91e292 (patch)
tree3ab5077ad34654b9ae5bdfc018ae0b4e7cc6f70e /api/src/routes
parent:bug: fix build (diff)
downloadserver-9fa4c607fc5056dc2b2cc0be9b425872ec91e292.tar.xz
:art: fix imports with new build script
Diffstat (limited to 'api/src/routes')
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts3
1 files changed, 2 insertions, 1 deletions
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;