mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 21:53:46 +00:00
Update channel type enum to un-erkinalp-ize it, and match discord
This commit is contained in:
1 parent
b40f4f10e6
commit
a3ef2482ec
2 files changed
+9
-12
No files matched your search
@@ -426,7 +426,7 @@ export class Channel extends BaseClass {
|
||||
|
||||
// Does the channel support sending messages ( eg categories do not )
|
||||
isWritable() {
|
||||
const disallowedChannelTypes = [ChannelType.GUILD_CATEGORY, ChannelType.GUILD_STAGE_VOICE, ChannelType.VOICELESS_WHITEBOARD];
|
||||
const disallowedChannelTypes = [ChannelType.GUILD_CATEGORY, ChannelType.GUILD_STAGE_VOICE];
|
||||
return disallowedChannelTypes.indexOf(this.type) == -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user