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:
parent
26a6183538
commit
de85ba37b9
66 changed files with 623 additions and 192 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue