3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 02:25:01 +00:00

More fixes, change rest of stripObjectToScalars to configAccessibleObj

This commit is contained in:
Dark 2021-07-21 22:14:09 +02:00
parent 26a6183538
commit de85ba37b9
66 changed files with 623 additions and 192 deletions

View file

@ -1,4 +1,4 @@
import { GuildChannel, GuildMember } from "discord.js";
import { GuildChannel, GuildMember, ThreadChannel } from "discord.js";
import { getMissingPermissions } from "./getMissingPermissions";
/**
@ -7,7 +7,7 @@ import { getMissingPermissions } from "./getMissingPermissions";
*/
export function getMissingChannelPermissions(
member: GuildMember,
channel: GuildChannel,
channel: GuildChannel | ThreadChannel,
requiredPermissions: number | bigint,
): bigint {
const memberChannelPermissions = channel.permissionsFor(member.id);