3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-12 21:47:20 +00:00

slowmode: fix bot slowmodes not being applied for slowmodes over 6h; add -mode option; add eager permission checks

This commit is contained in:
Dragory 2020-08-09 16:58:36 +03:00
parent 6f4955b83b
commit 7595baf945
12 changed files with 227 additions and 110 deletions

View file

@ -0,0 +1,8 @@
import { Constants } from "eris";
const p = Constants.Permissions;
export const NATIVE_SLOWMODE_PERMISSIONS = p.readMessages | p.manageChannels;
export const BOT_SLOWMODE_PERMISSIONS = p.readMessages | p.manageRoles | p.manageMessages;
export const BOT_SLOWMODE_CLEAR_PERMISSIONS = p.readMessages | p.manageRoles;
export const BOT_SLOWMODE_DISABLE_PERMISSIONS = p.readMessages | p.manageRoles;