hasPermission

suspend fun CheckContext<*>.hasPermission(perm: Permission)

Check asserting that the user an Event fired for has a given permission, or the Administrator permission.

Only events that can reasonably be associated with a guild member are supported. Please raise an issue if an event you expected to be supported, isn't.

Parameters

perm

The permission to check for.