3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00
This commit is contained in:
metal 2021-08-21 15:15:17 +00:00 committed by GitHub
parent 655a05b98e
commit a230bab007

View file

@ -1,4 +1,4 @@
import { Permissions, Snowflake, TextChannel } from "discord.js";
import { Permissions, Snowflake, TextChannel, PermissionString } from "discord.js";
import * as t from "io-ts";
import { GuildPluginData } from "knub";
import { ActionError } from "../ActionError";
@ -34,7 +34,7 @@ export async function setChannelPermissionOverridesAction(
for (const override of action.overrides) {
const allow = new Permissions(BigInt(override.allow)).serialize();
const deny = new Permissions(BigInt(override.deny)).serialize();
const perms = {};
const perms: Partial<Record<PermissionString, boolean | null>> = {};
for (const key in allow) {
if (allow[key]) {
perms[key] = true;