Skip to content

Pre

Pre-release
Pre-release
Compare
Choose a tag to compare
@spuckhafte spuckhafte released this 27 Jun 10:06
· 16 commits to master since this release

commit

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.