Command AuthorizationΒΆ

Each command is authorized using discordRebot.manager.AuthorizeCallBack().

Which checks for function attributes

And each attribute is authorized using discordRebot.manager.Authorize().

Example:

Fn.auth = groups['AllUser']
Fn.has_roles = Roles['Admin']

# Authorizes all users who both **belong to a group** and **having admin role**