Skip to content

Pre

Pre-release
Pre-release
Compare
Choose a tag to compare
@spuckhafte spuckhafte released this 28 Jun 03:46
· 15 commits to master since this release

commit

Changes

  • hasPerm method nd function to check if the bot or any user has certain perm in the channel linked to a cmd's msg.

Inside a Command class (checks only for the bot)

this.botHasPerm( perm: PermissionResolvable ): boolean

Anywhere (checks for any user)

import { userHasPerm } from 'breezer.js';
userHasPerm( perm, userId: string, msg: Message ): Promise<boolean>