mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
11 lines
376 B
TypeScript
11 lines
376 B
TypeScript
import { GuildMember, Snowflake } from "discord.js";
|
|
import { GuildPluginData } from "knub";
|
|
import { ModActionsPluginType } from "../types";
|
|
|
|
export async function hasMutePermission(
|
|
pluginData: GuildPluginData<ModActionsPluginType>,
|
|
member: GuildMember,
|
|
channelId: Snowflake,
|
|
) {
|
|
return (await pluginData.config.getMatchingConfig({ member, channelId })).can_mute;
|
|
}
|