(build-user-permissions-embed user-role-ids guild-roles)
Given the IDs of the roles that they have and the roles available in the guild generates an embed showing the permissions that user does and does not have.
Given the IDs of the roles that they have and the roles available in the guild generates an embed showing the permissions that user does and does not have.
(determine-user-permissions user-roles guild-roles)
Given a list of roles that a user has and a list of roles available in the guild, determines which permissions a user has been granted based on their roles.
Given a list of roles that a user has and a list of roles available in the guild, determines which permissions a user has been granted based on their roles.
(permission-map->embed permission-map)
Given a map of permissions to a boolean indicating whether or not a user has that permission, generates an embed that displays that information.
Given a map of permissions to a boolean indicating whether or not a user has that permission, generates an embed that displays that information.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close