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 | a3c8ab163a50e5ea0b055ebf6a6724f6ba703160 (patch) | |
tree | 8013a25fc1f5ab5d6c3a6e67278a1b08c0de5301 /api/src/routes/channels/#channel_id/messages | |
parent | VOICE_SERVER_UPDATE now has the endpoint of the guild's region (diff) | |
download | server-a3c8ab163a50e5ea0b055ebf6a6724f6ba703160.tar.xz |
Added missing permissions and channel types
Diffstat (limited to 'api/src/routes/channels/#channel_id/messages')
-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; } |