diff options
author | AlTech98 <altech123159@gmail.com> | 2021-09-04 11:43:09 +0200 |
---|---|---|
committer | AlTech98 <altech123159@gmail.com> | 2021-09-04 11:43:09 +0200 |
commit | aafdc5d0eeab36d04d0a0463a2c7d10727954f88 (patch) | |
tree | 0d161d6abcc7b326c9c02fbd19b149b2a67879e9 /api | |
parent | VOICE_SERVER_UPDATE now has the endpoint of the guild's region (diff) | |
download | server-aafdc5d0eeab36d04d0a0463a2c7d10727954f88.tar.xz |
Added missing permissions and channel types
Diffstat (limited to 'api')
-rw-r--r-- | api/src/routes/channels/#channel_id/messages/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts index 1a3150cf..ad590d05 100644 --- a/api/src/routes/channels/#channel_id/messages/index.ts +++ b/api/src/routes/channels/#channel_id/messages/index.ts @@ -17,11 +17,15 @@ export function isTextChannel(type: ChannelType): boolean { switch (type) { case ChannelType.GUILD_STORE: case ChannelType.GUILD_VOICE: + case ChannelType.GUILD_STAGE_VOICE: case ChannelType.GUILD_CATEGORY: throw new HTTPError("not a text channel", 400); case ChannelType.DM: case ChannelType.GROUP_DM: case ChannelType.GUILD_NEWS: + case ChannelType.GUILD_NEWS_THREAD: + case ChannelType.GUILD_PUBLIC_THREAD: + case ChannelType.GUILD_PRIVATE_THREAD: case ChannelType.GUILD_TEXT: return true; } |