mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
typings!
This commit is contained in:
parent
655a05b98e
commit
a230bab007
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue