Liking cljdoc? Tell your friends :D

discord.extensions.builtin.debug


build-user-permissions-embedclj

(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.
sourceraw docstring

determine-user-permissionsclj

(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.
sourceraw docstring

permission-map->embedclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close