dscord ~master (2021-11-07T02:10:19.0578386)
Dub
Repo
Permissible.can
dscord
types
permission
Permissible
Returns whether the given user id has all of the given permissions
bool
can
(Snowflake user, Permission perm)
bool
can
(Snowflake user, Permission[] some)
mixintemplate
Permissible
()
bool
can
(
Snowflake
user
,
Permission
[]
some
...
)
bool
can
(User user, Permission perm)
bool
can
(User user, Permission[] some)
Meta
Source
See Implementation
dscord
types
permission
Permissible
functions
can
Returns whether the given user id has all of the given permissions