khari Docs
Security

Fake Permissions

Give roles powers that only work through khari.

Fake permissions

Fake permissions give a role a permission that only works through khari, never as a real Discord power. A Trial Mod role can get moderate_members to use ,timeout without being able to time people out in Discord itself.

  • ,fakepermissions @role ban_members gives it, or takes it away if the role already has it. Names match Discord's own, like kick_members and manage_messages.
  • Fake administrator grants every fake permission, but never bot settings.
  • ,modlimit sets limits for people using fake permissions, like uses per hour and the longest timeout. Anti-nuke still applies to them.
  • Fake permissions can't be given to @everyone or integration roles.

Hierarchy

Nobody can moderate someone with an equal or higher role, the server owner, or the bot. Giving a role only needs the role to be below yours. Taking a role away also needs you to outrank the person.

Choosing who uses what

  • ,restrictcommand ban @role limits ban to that role, on top of its usual permission. Run it again to lift it.
  • ,disablecommand and ,enablecommand turn a command off and on, server-wide or in one channel.
  • ,disablemodule and ,enablemodule do the same for a whole category, like Utilities.
  • ,ignore makes khari ignore commands from a channel or member.

Fake permissions commands

,fakepermissions <role> <permission>

Gives a role a bot-only permission, or takes it away if it has it. Never a real Discord power.

Also: ,fakeperms, ,fp
,fakepermissions add <role> <permission>

Gives a role a bot-only permission, like ban_members.

,fakepermissions list

Shows every role's fake permissions.

,fakepermissions remove <role> <permission>

Takes a fake permission away from a role.

,fakepermissions reset

Clears every fake permission in this server.

,modlimit

Limits for people using fake permissions: uses per hour, and the longest timeout or ban.

,modlimit list

Shows every limit, and the defaults.

,modlimit remove <role> <"warn"|"timeout"|"untimeout"|"kick"|"ban"|"unban"|"mute"|"unmute"|"imagemute"|"unimagemute"|"reactionmute"|"unreactionmute">

Removes a role's limit, so the default applies again.

,modlimit set <role> <"warn"|"timeout"|"untimeout"|"kick"|"ban"|"unban"|"mute"|"unmute"|"imagemute"|"unimagemute"|"reactionmute"|"unreactionmute"> <per_hour> [max_duration]

Sets a role's limit for one action.