function getCalculatedPosition() {
        $sorted = $this->guild->roles->sortCustom(function (\CharlotteDunois\Yasmin\Models\Role $a, \CharlotteDunois\Yasmin\Models\Role $b) {
            return $b->comparePositionTo($a);
        });
        
        return $sorted->indexOf($this);
    }
function getCalculatedPosition() {
        $sorted = $this->guild->roles->sortCustom(function (\CharlotteDunois\Yasmin\Models\Role $a, \CharlotteDunois\Yasmin\Models\Role $b) {
            return $b->comparePositionTo($a);
        });
        
        return $sorted->indexOf($this);
    }
function getCalculatedPosition ( ) { $ sorted = $ this -> guild -> roles -> sortCustom ( function ( \ CharlotteDunois \ Yasmin \ Models \ Role $ a , \ CharlotteDunois \ Yasmin \ Models \ Role $ b ) { return $ b -> comparePositionTo ( $ a ) ; } ) ; return $ sorted -> indexOf ( $ this ) ; }
Calculates the positon of the role in the Discord client.
@return int
Calculates the positon of the role in the Discord client .