hasPermissions

inline suspend fun Member.hasPermissions(vararg perms: Permission): Boolean
suspend fun Member.hasPermissions(perms: Collection<Permission>): Boolean

Convenience function to check whether a guild member has all of the given permissions.

This function only checks for permissions based on roles, and does not deal with channel overrides. It will always return true if the member has the Administrator permission.

Receiver

The Member check permissions for

Return

true if the collection is empty, or the Member has all of the given permissions, false otherwise

Parameters

perms

The permissions to check for