hasPermission

suspend fun Member.hasPermission(perm: Permission): Boolean

Convenience function to check whether a guild member has a permission.

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 in one of their roles.

Receiver

The Member check permissions for for

Return

Whether the Member has the given permission, or the Administrator permission