Closed known-as-dan closed 4 years ago
Re-forked and re-made pull request to be fully consistent with the branches, sorry for any trouble this might cause...
Implemented a permission system that allows you to specify which permissions your command requires of the user, in-order to execute.
Old "Command" structure:
type Command = { name: string, description: string, ... permissionLevel?: number, ... }
New structure:
type Command = { name: string, description: string, ... permissions?: PermissionResolvable[], ... }
Usage example: permissions: ['MANAGE_NICKNAMES', 'MANAGE_ROLES' ... ]
permissions: ['MANAGE_NICKNAMES', 'MANAGE_ROLES' ... ]
Added coin flip module.
Usage: s.flip
s.flip
Output example: @User#0000, Tails!
@User#0000, Tails!
Re-forked and re-made pull request to be fully consistent with the branches, sorry for any trouble this might cause...
Permission Revamp
Implemented a permission system that allows you to specify which permissions your command requires of the user, in-order to execute.
Old "Command" structure:
New structure:
Usage example:
permissions: ['MANAGE_NICKNAMES', 'MANAGE_ROLES' ... ]
Coin Flip Module
Added coin flip module.
Usage:
s.flip
Output example:
@User#0000, Tails!