mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-14 22:05:01 +00:00
Pre-plugin moves
This commit is contained in:
parent
9fc045cd38
commit
8f7a6510eb
13 changed files with 62 additions and 52 deletions
|
@ -1,8 +1,8 @@
|
|||
import { Constants, GuildChannel, Member } from "eris";
|
||||
import { readChannelPermissions } from "./readChannelPermissions";
|
||||
import { getMissingChannelPermissions } from "./getMissingChannelPermissions";
|
||||
import { GuildChannel, GuildMember } from "discord.js";
|
||||
|
||||
export function canReadChannel(channel: GuildChannel, member: Member) {
|
||||
export function canReadChannel(channel: GuildChannel, member: GuildMember) {
|
||||
// Not missing permissions required to read the channel = can read channel
|
||||
return !getMissingChannelPermissions(member, channel, readChannelPermissions);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue