mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +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 * as t from "io-ts";
|
||||||
import { GuildPluginData } from "knub";
|
import { GuildPluginData } from "knub";
|
||||||
import { ActionError } from "../ActionError";
|
import { ActionError } from "../ActionError";
|
||||||
|
@ -34,7 +34,7 @@ export async function setChannelPermissionOverridesAction(
|
||||||
for (const override of action.overrides) {
|
for (const override of action.overrides) {
|
||||||
const allow = new Permissions(BigInt(override.allow)).serialize();
|
const allow = new Permissions(BigInt(override.allow)).serialize();
|
||||||
const deny = new Permissions(BigInt(override.deny)).serialize();
|
const deny = new Permissions(BigInt(override.deny)).serialize();
|
||||||
const perms = {};
|
const perms: Partial<Record<PermissionString, boolean | null>> = {};
|
||||||
for (const key in allow) {
|
for (const key in allow) {
|
||||||
if (allow[key]) {
|
if (allow[key]) {
|
||||||
perms[key] = true;
|
perms[key] = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue