Add category editor to servers.

This commit is contained in:
Paul
2021-07-24 19:39:41 +01:00
parent 3d6d95195e
commit dd4edea933
10 changed files with 242 additions and 54 deletions

View File

@@ -83,8 +83,10 @@ export default function Permissions({ channel }: Props) {
</Checkbox>
);
})}
<h2>channel per??issions</h2>
<h2>channel permissions</h2>
{Object.keys(ChannelPermission).map((perm) => {
if (perm === "View") return null;
const value =
ChannelPermission[perm as keyof typeof ChannelPermission];
if (value & DEFAULT_PERMISSION_DM) {