Pre
Pre-release
Pre-release
Changes
- State operations are done inside angle brackets:
<< $count$ + 1 >>
hasPerm
function and method to check if a bot or any user has a specific permission. (check the latest :: 0.4.1 release note)
## hasPerm
functions
### Inside a command class (checks only for the bot):
- this.hasPermInGuild( perm: PermissionResolvable )
- this.hasPernInChannel( perm: PermissionResolvable )
### Anywhere (checks for any userId)
import { hasPermInGuild, hasPermInChannel } from 'breezer.js'
- hasPermInGuild( perm, msg, userId: optional )
- hasPermInChannel( perm, msg, userId: optional )
- if userId
is not specified msg-author's id is used.