Skip to content

Commands could be configured following a structure #2

@Alon-L

Description

@Alon-L

e.x.

{
  name: 'help',
  aliases: ['h', 'help!'],
  permissions: ['SEND_MESSAGES'],
}

If the bot lacks a permission, an InvalidPermission error will be threw. Users will be able to catch these errors and check:

try {
...
} catch(err) {
  if (err instanceof InvalidPermission) {
     ...
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions